I am trying to analyze some simulated data (long data format) of 199 participants using the lme4 package. In this dataset, belongingness, authenticity, and inclusion are measured two times and are predicted by exercise condition (= 0, 1, 2), Time (= 0, 1), and population (=0, 1). For this, I fitted the following three models to the data:
ModelH2 = lmer(Belongingness ~ 1 + Exercise*Time + (1 + Time|id), REML=F, data=inclusion_data)
ModelH3 = lmer(Authenticity ~ 1 + Exercise*Time + (1 + Time|id), REML=F, data=inclusion_data)
ModelH4_H5 = lmer(Inclusion~ 1 + Exercise*Time + Population*Time + (1 + Time|id ), REML=F, data=inclusion_data)
However, when I try to fit these three models, I get the following error
Error: number of observations (=398) <= number of random effects (=398) for term (1 + Time | id); the random-effects parameters and the residual variance (or scale parameter) are probably unidentifiable
I read some suggestions on StackOverflow that it could help to change (1 + Time | id)
to (Time | id)
but did not help, I still received the same error.
Can you help me solve this error?