(1|CoupleID/SubjectID) <- Regarding the nesting of the subjects
(1|Block/Trial/TrialRepetitionTrialRep) <- Regarding the at what point in the experiment was the response data collected
lmer(electrode_response~TrialRep+(trial_rep|SubjectIDTrialRep |SubjectID)+(1|CoupleID/SubjectID)+(1|Block/Trial/TrialRep)
Linear mixed model fit by REML. t-tests use Satterthwaite's method ['lmerModLmerTest']
Formula: electrode_response ~ TrialRep + (TrialRep | SubjectID) + (1 | CoupleID/SubjectID) + (1 | Block/Trial/TrialRep)
Data: finaldb
Control: lmerControl(optimizer = "optimx", optCtrl = list(method = "nlminb"))
REML criterion at convergence: 80726
Scaled residuals:
Min 1Q Median 3Q Max
-5.3489 -0.5861 0.0203 0.6204 6.7150
Random effects:
Groups Name Variance Std.Dev. Corr
TrialRep:(Trial:Block) (Intercept) 0.82127 0.9062
Trial:Block (Intercept) 0.05282 0.2298
AbsSujSubjectID:ID CoupleID (Intercept) 9.21819 3.0361
AbsSuj SubjectID (Intercept) 19.82985 4.4531
TrialRep TrialRep 3.16028 1.7777 -1.00
ID CoupleID (Intercept) 2.03290 1.4258
Block (Intercept) 0.08479 0.2912
Residual 100.53917 10.0269
Number of obs: 10800, groups: TrialRep:(Trial:Block), 300; Trial:Block, 100; AbsSujSubjectID:IDCoupleID, 36; AbsSujSubjectID, 36; IDCoupleID, 18; Block, 4
Fixed effects:
Estimate Std. Error df t value Pr(>|t|)
(Intercept) 8.5483 0.9857 24.1529 8.672 6.98e-09 ***
TrialRep -1.8157 0.3254 37.6691 -5.581 2.20e-06 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Correlation of Fixed Effects:
(Intr)
> r.squaredGLMM(lm500Pzelectrode_response)
R2m R2c
[1,] 0.01769641 0.1905829