Skip to content

Extracting weights from an lme object

1 message · robert bagchi

#
Dear Dr Bolker,

Great - that worked perfectly. Thanks!

In case anyone needs to do this in the future, I am reliably getting the
weights in the correct order by doing

head(1/getCovariate(mod$modelStruct$varStruct)[order(order(getGroups(mod)))])

This seems to work fine for nested models too.

All the best,
Robi