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 make an inference that
a one unit change in one variable produced a one unit change in another.

levels(educ)
educ2 = NA
educ2[educ %in% levels(educ)[c(4,7)]] <- "HS or Some College"
educ2[educ %in% levels(educ)[1:2]] <- "College Degree"
educ2[educ %in% levels(educ)[c(3,5)]] <- "Advanced Degree"
educ2[educ %in% levels(educ)[c(6,8)]] <- "Other"
educ2 = factor(educ2)
levels(educ2)

The above code is how I regrouped the variable. How can I regroup it so
that it's levels
are from lowest to highest. What if they're numeric values"

-- 
*Abraham Mathew
Statistical Analyst
This or That Media, Inc.
abraham@thisorthat.com
720-648-0108
@abmathewks
www.amathew.com
*

	[[alternative HTML version deleted]]

