[R] Can't run code from "Mixed Effects Models in S and S-plus"

Peter Dalgaard p.dalgaard at biostat.ku.dk
Wed Apr 19 19:34:38 CEST 2006


"Joe Moore" <emgt_r at hotmail.com> writes:

> Dear R-users:
> 
> I can't run the following code from "Mixed Effects Models in S and S-plus".
> 
> library( nlme )
> options( width = 65, digits = 5 )
> options( contrasts = c(unordered = "contr.helmert", ordered = "contr.poly") 
> )
> 
> # Chapter 5    Extending the Basic Linear Mixed-Effects Models
> 
> # 5.1 General Formulation of the Extended Model
> 
> data( Orthodont )
> vf1Fixed <- varFixed( ~ age )
> vf1Fixed <- initialize( vf1Fixed, data = Orthodont )
> 
> Can anyone help me?

initialize() in nlme's S3-class based code clashed with initialize()
in the methods package, so it got renamed as Initialize() (notice
capitalization).

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907




More information about the R-help mailing list