Good evening, I know this post could not more out of moment today, but I try the same publishing it, hoping someone may help when possible. I'm working on a multilevel dataset in order to figure out which treatment between 2 may affect the outcome variable. On this purpose, the following covariates have been take into account several covariates from each subjects, including:
- the centre where they have been picked up from (10 in overall);
- the area where each centre was located (the 4 cardinal points);
- whether the clinic was private or not (2 values);
and further covariates, both numeric and factorial ones;
I'm trying building a random-effects model to validate the likelihood of each subjects to assume one of the two treatments, but I'm keeping on getting the same Error message:
Warning messages:
1: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv, :
Model failed to converge with max|grad| = 0.0100983 (tol = 0.002, component 1)
2: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv, :
Model is nearly unidentifiable: very large eigenvalue
- Rescale variables?;Model is nearly unidentifiable: large eigenvalue ratio
- Rescale variables?
So, due to the multi-level structure of the data, I am supposed to choose the best way to rescale variables. Which one of the multi-level variables mentioned before and belonging to this dataset I should scale? Should I use either the scale() function or anyone else? How that should be used? I specify that the model I'm seeking for building it is carried out by the glmer function of the lme4's package.
Many thanks and happy holidays
scale()
to attempt to solve this. Please provide the code you used to fit the model and, if possible, the dataset. Likely you misspecified the model in such a way that it can't be estimated. $\endgroup$