the title says all, ordered factor variable when generated it, remove ordering , use unordered factor variable. , question, if use factor variable predictor in regression make difference r if ordered (ordinal) or simple factor variable (categorical)?
all need is
x <- factor( x , ordered = false )
e.g.
x <- factor( c(1,2,"a") , ordered = true ) x #[1] 1 2 #levels: 1 < 2 < x <- factor( x , ordered = false ) x #[1] 1 2 #levels: 1 2
Comments
Post a Comment