Joe Moore
2006-Apr-19 17:03 UTC
[R] Can't run code from "Mixed Effects Models in S and S-plus"
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? Thanks
Peter Dalgaard
2006-Apr-19 17:34 UTC
[R] Can't run code from "Mixed Effects Models in S and S-plus"
"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