[R] Problems when using estimable() (gmodels) on lme()-objects

CG Pettersson cg.pettersson at lantmannen.com
Mon Dec 14 11:03:09 CET 2015


R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree", W7-32

Dear all,
I just upgraded R and downloaded a new version of "gmodels", to use estimable() for extracting fixed effects from lme()-objects.
Now it seems like estimable() have changed its view of dimensions of my lme-objects and contrast matrix dimensions, as I get this error message:

> estimable(y_15,Mat15)
Error in estimable.default(y_15, Mat15) :
 Dimension of structure(c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, : 25x26, not compatible with no of parameters in y_15: 25
Dimension of 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, : 25x26, not compatible with no of parameters in y_15: 25
Dimension of 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, : 25x26, not compatible with no of parameters in y_15: 25
Dimension of 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, : 25x26, not compatible with no of parameters in y_15: 25
Dimension of 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, : 25x26, not compatible with no of parameters in y_15: 25
Dimension of 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, : 25x26, not compatible with no of parameters in y_15: 25
Dimension of 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, : 25x26, not compatible with no of parameters in y_15: 25
Dimension of 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
>

Mat15 is made as a 25x25 contrast matrix, but the updated estimable() sees it as a 25x26.
Why, and what should I do about it?

I do think the change has occurred in estimable() as I tested one year old lme() objects and contrast matrix who worked perfectly then, giving the same error message when run with updated R.
Does estimable() see the row-names as the first column nowdays if I don´t specify anything else?

Best regards
CG Pettersson
Scientific Project Manager, PhD
______________________
Lantmännen Corporate R&D
Phone:  +46 10 556 19 85
Mobile: + 46 70 330 66 85
Email: cg.pettersson at lantmannen.com<mailto:cg.pettersson at lantmannen.com>
Visiting Address: S:t Göransgatan 160 A
Address: Box 30192, SE-104 25 Stockholm
Webb: http://www.lantmannen.com<http://www.lantmannen.com/>
Registered Office: Stockholm
Before printing, think about the environment


	[[alternative HTML version deleted]]



More information about the R-help mailing list