New model with nested random effects:

Affect ~ outcome + PE + ( 1 + outcome + PE | cohort / exam_num / id)

PA Gamma fit to full exploratory data frame is 0.85

NA Gamma fit to full exploratory data frame is 0.91

PA AICs for a Range of Gammas (0.01 to 0.99)

##   Gamma      AIC
## 1  0.01 7804.860
## 2  0.10 7796.526
## 3  0.25 7780.209
## 4  0.50 7746.135
## 5  0.75 7693.204
## 6  0.90 7657.607
## 7  0.99 7717.856
PA model AIC with Gamma = 0.85 is 7666.9306396

NA AICs for a Range of Gammas (0.01 to 0.99)

##   Gamma      AIC
## 1  0.01 8221.783
## 2  0.10 8212.319
## 3  0.25 8194.521
## 4  0.50 8159.909
## 5  0.75 8112.927
## 6  0.90 8097.182
## 7  0.99 8170.842
NA model AIC with Gamma = 0.91 is 8097.9928576