This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Fairly simple question. I have a variable that I am trying to regress, and it's divided into "low", "medium", "high" etc. When I enter it into the regression as a string, the coefficients don't match the intended order (e.g., "medium" is higher than "medium-high"). How do I specify an order to this variable?