Skip to content
Prev 12303 / 20628 Next

discrepency paired test and lmer()

You should not be using lm. Data are balanced, so you could use aov with 
Error() term, which should agree with lmer.

aov(Y ~ exposure + Error(family_id), data = dataset)

The analysis of variance (source, d.f.) is

Concordant versus Discordant       1
Between families within SibTypes  98
Within families                  100

lm will test 'concordant versus discordant' against the 'within 
families' mean square. aov and lmer test against the 'between families 
within SibTypes' mean square.

I don't see how you get a t statistic for 'concordant versus discordant' 
if you only analyse discordant pairs.
On 08/18/2014 10:20 AM, E.W.Tobi at lumc.nl wrote: