CG Pettersson
2015-Dec-14 10:23 UTC
[R] Problems using estimable() (gmodels) on lme()-objects
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? All the best /CG Pettersson [[alternative HTML version deleted]]
Bert Gunter
2015-Dec-14 16:20 UTC
[R] Problems using estimable() (gmodels) on lme()-objects
If you do not receive a satisfactory reply here, this is the sort of question that you should email the maintainer for, found by:> maintainer("gmodels")[1] "Gregory R. Warnes <greg at warnes.net>" Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Mon, Dec 14, 2015 at 2:23 AM, CG Pettersson <cg.kavlinge at gmail.com> wrote:> 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? > > All the best > /CG Pettersson > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.