Skip to content
Prev 20151 / 20628 Next

lme4 to nlme translation

Unless group2 is nested within group1 it will be difficult to translate
such a model into nlme syntax.  We developed lme4 and its computational
methods specifically to be able to handle multiple non-nested grouping
factors, for which nlme was not well suited.  There is an example in
Pinheiro and Bates (2000) of fitting a model with crossed grouping factors
using the nlme package but the technique doesn't scale well.

Depending on the nature of the heteroscedasticity you may be better off
trying to transform the response, say with the Box-Cox family of
transformations.


On Wed, Mar 29, 2023 at 8:41?AM kalman.toth via R-sig-mixed-models <
r-sig-mixed-models at r-project.org> wrote:

            

  
  
Message-ID: <CAO7JsnR_EANK=1HY9aZjvPCrcHeLjBkRFMr7a2js+cy1OmtzQg@mail.gmail.com>
In-Reply-To: <jJiPjQzHOZ5zJ4jjVQJVTSfP5zD_WH9tJXdwafbydM0v3Sw3faF6-ulClq_hqgRXTRc7mWms7a6RexH_83SK2KEU1pGx358eSJaYoo4gXoA=@protonmail.com>