Skip to content
Prev 20404 / 20628 Next

Paired ttest using lme4

Hi Ghader,

a) tt is not set up in the correct way for a pair t-test.
b) the mixed model assumes the variances are equal, but the call to t.test specifies them to be different.

t.test(tt2[1:3,3], tt2[4:6,3], var.equal=TRUE)

is identical to lmer.

Cheers,

Jarrod
On 17 Jun 2024, at 16:01, Ghader Mirzaghaderi via R-sig-mixed-models <r-sig-mixed-models at r-project.org> wrote:
var.equal = F

The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th' ann an Oilthigh Dh?n ?ideann, cl?raichte an Alba, ?ireamh cl?raidh SC005336.