Skip to content
Prev 19076 / 20628 Next

lmer code for multiple random slopes

On 25/2/21 5:16 am, Peter R Law via R-sig-mixed-models wrote:
This is to be expected: lme can't handle singular models (e.g. models
with an exactly zero variance component), but lmer can. So lme just gets
as close as it can.
It depends on what's going wrong. Generally these should return
identical fits for converged models (with the fine print that there are
certain models that you can specify in one but not the other without a
lot of effort).
The list strips most attachment types, so your script didn't make it
through. But just your data was enough for me to find a few problems

First, you're fitting and displaying two different models here:
Second, when I try to fit the model that's given by the summary here, I
get a numerical error in lme:
Error in lme.formula(Response ~ P + A, random = ~P + A | Group, data =
Trial,  :
  nlminb problem, convergence error code = 1
  message = false convergence (8)


This makes me think that something is wrong wrong in both bits of
software, but maybe the versions on your local machine are catching it
This screams that your normP and normA variables aren't being handled as
continuous but rather categorical/factors. This means that you have a
lot more slopes being estimated, which the model survives, but not the
extra correlation parameters (hence the success when you suppress them
with the two syntax variants you mention below).
Yep! Frequently, we have the reverse problem: people forget to keep the
list in CC. So thanks! The matching in the threading is handled mostly
by the subject line.
Message-ID: <f286a096-f420-c246-61ad-542eaa5dad44@phillipalday.com>
In-Reply-To: <e2zoG5je3QHzcPl3dsttnLigMgzR8mqiUJAdgntQm9xPOX4j3SwlDytjMtbOFRj-vf5TjpHVRD7rzd54mvwMFm9OhW-ff4lfhR383lioPX4=@protonmail.com>