lindeloev / tests-as-linear

Common statistical tests are linear models (or: how to teach stats)
https://lindeloev.github.io/tests-as-linear/
488 stars 92 forks source link

Incorrect results in Table 5.1.4 R code: independent t-test #25

Closed ijmarshall closed 4 years ago

ijmarshall commented 4 years ago

This site is fantastic - please can I share a couple of minor errors:

In the table, the degrees of freedom for the t test are showing as 48, instead of 98.

The confidence intervals are also mismatching, but I can make them match exactly if the linear model CIs on beta_1 were used (if the directionality were reversed on either the t-test or the lm).

Thank you!

ijmarshall commented 4 years ago

apologies I have just seen this is a duplicate of https://github.com/lindeloev/tests-as-linear/issues/21