[R] Ordering in factors ...

j.logsdon@lancaster.ac.uk j.logsdon at lancaster.ac.uk
Fri Jun 28 10:27:11 CEST 2002

This is a trivial question probably buried in page 21 somewhere of An
Idiot's Guide to R.

In MASS(2) P26 for S-Plus you can write:


but in R 1.5.0 you get the response to such an instruction:

Error: couldn't find function "ordered<-"

What's the fix to this?  I have a series of models where the factors as
reported need re-ordering so that the glm reports the coefficients with
respect to the correct level.  At the moment, while the solutions are
identical, I actually have to do some arithmetic to show this.



r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list