I am trying to use Bates et al (2015) recommendation on reducing a maximal model based on variance explained by the random terms. Importantly, all examples in Bates are models with exclusively categorical variables, not continuous or categorical x continuous interactions. I've found that you can hit a dead-end when your random structure includes categorical x continuous interactions. See code below, which I got after a few iterations of succesfully simplifying the maximal:
max.zcm.4 = lmer(ECG_sd ~ C + A + V+ CA + Time_sd + C:Time_sd + A:Time_sd + CA:Time_sd+
(1+C + A + CA + Time_sd + C:Time_sd + A:Time_sd ||Subject) +
(1+ C + A + Time_sd + C:Time_sd || Stim),
data=data, control = lmerControl(optimizer="bobyqa", calc.derivs = FALSE, optCtrl=list(maxfun=2e5)),na.action = "na.exclude")
See random effects info:
Groups Name Variance Std.Dev.
Subject (Intercept) 0.0023927 0.04892
Subject.1 C 0.0398474 0.19962
Subject.2 A 0.1602602 0.40033
Subject.3 CA 0.0112184 0.10592
Subject.4 Time_sd 0.0006361 0.02522
Subject.5 C:Time_sd 0.0134182 0.11584
Subject.6 A:Time_sd 0.0160719 0.12677
Stim (Intercept) 0.0001093 0.01046
Stim.1 C 0.0359583 0.18963
Stim.2 A 0.0328272 0.18118
Stim.3 Time_sd 0.0006784 0.02605
Stim.4 C:Time_sd 0.0033931 0.05825
Residual 0.9307705 0.96476
Number of obs: 54668, groups: Subject, 79; Stim, 24
This model is still non convergent and clearly overparametrized so I need to simplify the random structure. The variance of [Time_sd|Stim] is the lowest, 0.0006784 , followed by [C:Time_sd | Stim] which is 0.0033931. I understand that I first need to remove the interaction. In any case, removing either C:Time_sd, or Time_sd, or both, in all cases it significantly reduces model fit as indicated by the LRT. So I've hit a dead-end: the model won't converge as is, but removing any terms will worsen model fit. I wonder if the issue could have something to do with the continuous*categorical interaction; none of Bates models included that. Could it be that the parsimonious strategy has to be handled differently when it includes time-variant continuous variables?
Reference: Bates, D., Kliegl, R., Vasishth, S. and Baayen, H., 2015. Parsimonious mixed models. arXiv preprint arXiv:1506.04967. https://arxiv.org/pdf/1506.04967.pdf