[R] Question about mixed-effects models example (Pinheiro and Bates)

Thomas Lumley tlumley at u.washington.edu
Sat Jan 12 21:37:26 CET 2002


On Sat, 12 Jan 2002, Shravan Vasishth wrote:

> Hi all,
>
> I'm trying to figure out the example about mixed models in the Pinheiro
> and Bates book (Mixed-Effects Models in S and S-Plus, 2000, pp. 135-137).
> One thing I don't understand is:
>
> When I run the command
>
>      fm1Orth.lm <- lm( distance ~ age, Orthodont )
>
> followed by
>
>     fm2Orth.lm <- update( fm1Orth.lm, formula = distance ~ Sex*age )
>
> and then do
>
>     summary(fm2Orth.lm)
>
> in the output, there's "SexFemale" instead of "Sex" (see below). Why?

Because that's how R displays factor constrasts.

	-thomas


Thomas Lumley			Asst. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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