Do years married affect cheating?
##
## Welch Two Sample t-test
##
## data: affairs$yearsmarried by affairs$cheater
## t = -3.6123, df = 274.53, p-value = 0.0003608
## alternative hypothesis: true difference in means between group No and group Yes is not equal to 0
## 95 percent confidence interval:
## -2.7881721 -0.8211625
## sample estimates:
## mean in group No mean in group Yes
## 7.727279 9.531947
Years married has an effect on cheating
- The p-value < alpha (0.01), therefore
- We reject the Ho, and and conclue there is a difference in years
married between cheaters and non-cheaters
- People that cheat, on avaerage, have been married longer