Skip to content
Prev 20330 / 20628 Next

Implications of modeling residuals in multilevel models

Dear Ben,

A question regarding your response is inline below.

### I think it would be fair to call this a location-scale model since
you are modeling both the location (mean) and the scale (SD/variance),
although often people use the term for models where there is a random
effect in both the location and the scale model.

Q: Usually for the scale part of a location-scale model, the linear model
uses a logarithmic link to guarantee that the estimate of scale is positive:

log(scale_i) = a_0 + b_1*x_i1+ ... + b_n*x_ip  (for p predictors of scale)

But in the MODEL that I sketched below, how such a guarantee is made?

MODEL <- nlme::lme(y ~ X1_categorical + X2_numeric ...,
         random = ~1| subject,
         data = data,
         correlation = corSymm(~1|subject),
         weights = varComb(varIdent(form = ~ 1 |  X1_categorical ),
                                          varPower(form = ~  X2_numeric )))

Thanks, Simon
On Fri, Dec 22, 2023 at 12:30?PM Ben Bolker <bbolker at gmail.com> wrote: