I am trying to see how I can plot quadratic growth in R for a growth curve model I've been running. Model:
m1 <- lmer(score ~ Time + Group + Time_Sqaure +
(1 + School | Subject), data=df, REML = FALSE)
tab_model(m1)
Both Time (B = 9.58, p<.01) and Time_Square (B = - 0.51, p <.01) along with Group (B = 2.77, p <.01) differences are significant.
If I use plot_model, it gives me the best fit line for each group.
plot_model(m1, type = "pred", terms = c("Time", "Group"))
Is there a way to plot the fitted curves or quadratic growth that shows the rate of growth slowing over time?
Thanks!