[R] Constructing groupedData objects in nlme - a little problem
Toby.Marthews at lsce.ipsl.fr
Wed Jun 4 16:01:48 CEST 2008
I am trying to create groupedData objects using the nlme library. I'm
missing something basic, I know:
Here is the first example in ch.1 of Pinheiro & Bates (2000):
x12 x15 x11 x16 x13 x14
31.66667 50.00000 54.00000 82.66667 84.66667 96.00000
...which works fine. This uses a built-in groupedData object called "Rail"
that is part of the nlme library.
I am trying to 'recreate' this groupedData object. Here's what I've done:
...but, as you can see, the coefficients I get at the end this time are
completely different and I don't know why. Somehow, I am not creating the
structure properly even though the formula and data values are all
Can anyone help? I've looked at the ?groupedData man page, but it has no
solution to this.
Thanks very much for any advice,
Pinheiro JC & Bates DM (2000). Mixed-Effects Models in S and S-PLUS (1st
ed.). Springer, New York.
More information about the R-help