I have fitted the following mixed model in r, using lme4
model<-FMI~MVPAper + Age + (1|Child_ID)
And I was wondering if someone can help me code for ggplot to examine the differences at each age? (8,9,12,15). I will print the summary command from the mixed model below,
> summary(mixedmodel)
Linear mixed model fit by REML ['lmerMod']
Formula: (FMI) ~ MVPAper + Age + (1 | Child_ID)
REML criterion at convergence: 34444.6
Scaled residuals:
Min 1Q Median 3Q Max
-1.216 -0.123 -0.093 0.061 51.872
Random effects:
Groups Name Variance Std.Dev.
Child_ID (Intercept) 6.459 2.541
Residual 283.758 16.845
Number of obs: 4048, groups: Child_ID, 1023
Fixed effects:
Estimate Std. Error t value
(Intercept) 2.1850969 0.5697864 3.835
MVPAper 0.0028865 0.0007984 3.615
Age9 0.0908241 0.7482005 0.121
Age12 -0.3519625 0.7478261 -0.471
Age15 -0.4881878 0.7499429 -0.651
Correlation of Fixed Effects:
(Intr) MVPApr Age9 Age12
MVPAper -0.350
Age9 -0.639 -0.040
Age12 -0.652 -0.004 0.498
Age15 -0.671 0.056 0.494 0.496
Any help is greatly appreciated, cheers.