3
$\begingroup$

Sorry it might be a more Stack Overflow question but I was reading this nice cheat sheet for using function lmer in package lme4 in R, and here is the link on Cross Validated. I will give a screenshot as below:

enter image description here

So I was wondering could anyone help create a similar cheat sheet for using function lme in package nlme?

I was reading the general examples for using lme as enter image description here

The examples are very limited. It seems if we do not specify the random part in lme, then the variables list in the fixed effect part will also be considered as random.

$\endgroup$

1 Answer 1

1
$\begingroup$

Function lme() also works with a special class of data frames defined in package nlme, which are called groupedData. In this data frame a formula for the grouping structure is provided that lme() directly uses if the random argument is not specified. If you don't use a groupedData (that contains the random-effects structure) and do not specify the random argument, lme() will through an error.

$\endgroup$
1
  • 3
    $\begingroup$ But how does this answer the question So I was wondering could anyone help create a similar cheat sheet for using function lme in package nlme? $\endgroup$ Feb 20, 2019 at 7:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.