[R] ..lsmeans and coxme..

2015-05-28 Thread Matthias Kuhn
Dear list-eners, I run into the following problem when I want to get contrasts from a coxme model using the lsmeans package: A call to lsmeans on the coxme model throws the following error: Error in if (adjustSigma && object$method == "ML") V = V * object$dims$N/(object$dims$N - : missing valu

[R] ..nlme: start values necessary even though using self-start function?..

2014-09-30 Thread Matthias Kuhn
Dear list. I am stuck with an "subscript out of bounds" error when I play with an nlme-example from the yellow Pinheiro/Bates book. It is about using nlme() using the formula interface for non-linear mixed models. The following code snippet is inspired by the book (in section 8.2), using the Oran

Re: [R] Two-way Random Effects with unbalanced data

2012-11-06 Thread Matthias Kuhn
Asaf, I think that the lme4-package on CRAN with its main function lmer() can help you here. It uses restricted ML to find the estimates and should cope with unbalanced data. The two factors of your random effects can be either nested or crossed. Have a look in the book (draft-version) on lme4 by