Skip to content

Instantly share code, notes, and snippets.

@dsquintana
Created July 24, 2019 11:52
Show Gist options
  • Save dsquintana/ab22ed76f358f77b7a8955e8ec612da0 to your computer and use it in GitHub Desktop.
Save dsquintana/ab22ed76f358f77b7a8955e8ec612da0 to your computer and use it in GitHub Desktop.
> summary(aov(happy_o ~drugcond*emocond,data=h_dat)) # Interaction effect on happiness
Df Sum Sq Mean Sq F value Pr(>F)
drugcond 1 1.70 1.70 1.436 0.2352
emocond 1 34.21 34.21 28.950 1.16e-06 ***
drugcond:emocond 1 4.40 4.40 3.726 0.0581 .
Residuals 63 74.44 1.18
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
49 observations deleted due to missingness
> summary(aov(grateful_o ~drugcond*emocond,data=h_dat)) # Interaction effect on gratefulness
Df Sum Sq Mean Sq F value Pr(>F)
drugcond 1 1.99 1.992 1.746 0.1911
emocond 1 27.34 27.335 23.965 7.15e-06 ***
drugcond:emocond 1 4.92 4.925 4.318 0.0418 *
Residuals 63 71.86 1.141
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
49 observations deleted due to missingness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment