[SOLVED] ACF plot in ggplot2 from a mixed effects model

Issue I’m trying to perform an autocorrelation plot in ggplot2. library(nlme) fm2 <- lme(distance ~ age + Sex, data = Orthodont, random = ~ 1) plot(ACF(fm2,resType="normalized"),alpha=0.05) Result through the above function: ########################## IC ########################### ic_alpha= function(alpha, acf_res){ return(qnorm((1 + (1

Continue reading