[R] corCompSymm in nlme package

David Pleydell D.R.J.Pleydell at pgr.salford.ac.uk
Wed Feb 23 18:53:01 CET 2005


We are trying to use the corCompSymm function in nlme

The example from the help pages for the corAR1 function gives the following

> corAR1(0.2, form = ~ 1 | Mare)
Correlation structure of class corAR1 representing
Phi
0.2

We are expecting a somewhat similar correlation specification with the help page
example for corCompSymm, but just get an error instead

> corCompSymm(0.5, form = ~ 1 | Subject)
Error in "names<-.default"(`*tmp*`, value = "Rho") :
        names attribute [1] must be the same length as the vector [0]

this error is concistent in R1.8 and R2.0 on windows XP and also R2.0.1 on
Redhat

Thanks in advance for any help
Dave and Jerome

----------------------------------------------------------------
Concerns about content should be sent to abuse at salford.ac.uk




More information about the R-help mailing list