USE R, SHOW R CODE AND OUTPUT
APPLIED STATISTICS 2
- Are Angry People More Likely to have Heart Disease’? People whoget angry easily tend to be more likely to have heart disease. Thatis the conclusion of a study that followed a random sample of12,986 people from three locations over about four years. Allsubjects were free of heart disease at the beginning of the study.The subjects took the Spielberger Trait Anger Scale, which measureshow prone a person is to sudden anger. The 8474 people in thesample who had normal blood pressure were classified according towhether they had “coronary heart disease” (CHD) or not and whetherthey had low anger, moderate anger, or high anger according to theAnger Scale.  The classification summary is given.
| Low Anger | Moderate Anger | High Anger |
    | 53 | 110 | 27 |
No CHD | 3057 | 4621 | 606 |
                UseR to conduct a test to see whether we can conclude at α=0.05, thatangry
                peopleare more likely to have heart disease.
USE R