[R] Reordering a numeric variable

2011-12-15 Thread Abraham Mathew
I'm running a linear model in R using the car package. I have a variable education, which i have recoded and regrouped to my wishes. However, R seems to place each element of that variable in alphabetical order. When I am running the model, don't I need the model order from lowest to highest to

Re: [R] Reordering a numeric variable

2011-12-15 Thread Bert Gunter
I believe this needs to be posted on general statistical help list like stats.stackexchange.com as you appear to have some confusion about how linear regression works, especially with categorical variables. ?ordered might help you with R's way of dealing with the issues that I believe you're