[R-sig-ME] Paired ttest using lme4

Jarrod Hadfield j@h@d||e|d @end|ng |rom ed@@c@uk
Mon Jun 17 16:15:32 CEST 2024


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 using 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.

	[[alternative HTML version deleted]]



More information about the R-sig-mixed-models mailing list