You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
math ~ female + ageYearsCentered + female:ageYearsCentered + (1 + ageYearsCentered | id), # random intercepts and slopes; sex as a fixed-effect predictor of the intercepts and slopes
119
119
data = mydata,
120
120
REML = FALSE, #for ML
121
121
na.action = na.exclude,
@@ -197,8 +197,8 @@ ranef(linearMixedModel)
197
197
198
198
```{r}
199
199
linearMixedModel_nlme <- lme(
200
-
math ~ female + ageYearsCentered,
201
-
random = ~ 1 + ageYearsCentered|id,
200
+
math ~ female + ageYearsCentered + female:ageYearsCentered, # sex as a fixed-effect predictor of the intercepts and slopes
201
+
random = ~ 1 + ageYearsCentered|id, # random intercepts and slopes
0 commit comments