Skip to content
Prev 198848 / 398503 Next

how to print the full name of the factors in summary?

Jen-Chien and Adaikalavan,

Weekday is specified as an ordered factor, for which the default contrast
type is contr.poly, i.e., orthogonal-polynomial contrasts. I would have
expected a 6th-degree polynomial for the 7 days of the week, and there's a
message that suggests that 3 coefficients are aliased, so there must be
redundancies among the factors. If you want contr.treatment, treating "Mon"
as the baseline level, then simply omit ordered=T from the call to factor(),
but this won't make the collinearities disappear.

I hope this helps,
 John

------------------------------
John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
web: socserv.mcmaster.ca/jfox
On
factor(SJ$Weekday,1:7,c("Mon","Tue","Wed","Thu","Fri","Sat","Sun"),ordered=T
)
http://www.R-project.org/posting-guide.html