Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a study of n = 40 patients. They all suffered a heart attack and have anger management issues. The dataframe has 3 variables: I

image text in transcribedimage text in transcribed
Consider a study of n = 40 patients. They all suffered a heart attack and have anger management issues. The dataframe has 3 variables: I ha2 Whether or not a patient had a second heart attack. If ha2 = 1, then the patient had a second heart attack; otherwise, ha2 = 0. This is the response variable. I treatment Whether or not the patient completed an anger control treatment program. 1 means the program was completed, else is is 0. o anxiety A continuous variable that scores the patient's anxiety level. A higher score denotes higher anxiety. We fit a logistic regression model with R. Here is a summary of the fit. > summary(mod) Call: glm(formula = ha2 ~ treatment + anxiety, binomial(link=logit), data = heartattack) Coefficients: Estimate Std. Error 2 value Pr(>|zl) (Intercept) 6.38342 2.50468 2.549 0.01082 * treatment -2.73309 1.00548 -2.718 0.00656 ** anxiety 0.13970 0.04819 2.899 0.00374 "' --- Signif. codes: 0 "' 0.001 ** 0.01 * 0.05.0.1 1 (Dispersion parameterfor binomial family taken to be 1) Null deviance: 55.452 on 39 degrees of freedom Residual deviance: 29.753 on 37 degrees of freedom AIC: 35.753 Compute the odds of suffering a second heart attack for those that completed the program divided by the the odds of suffering a second heart attack for those that did not complete the program. Interpret that odds ratio. Compute the odds of suffering a second heart attack for those that completed the program divided by the the odds of suffering a second heart attack for those that did not complete the program. Interpret that odds ratio. 0 Estimated OR=15.39; Not completing the program increases the odds of getting a 2nd heart attach by 15.39%. 0 Estimated OR=2.733; Completing the program decreases the odds of getting a 2nd heart attach by 2.733%. 0 Estimated OR= 0.0650; Completing the program decreases the odds of getting a 2nd heart attach by 6.5%. 0 Estimated OR=0.0650; Completing the program decreases the odds of getting a 2nd heart attach by 93.5%. 0 Estimated OR=2.733; Completing the program decreases the odds of getting a 2nd heart attach by 1.733%. 0 Estimated OR=15.39; Not completing the program increases the odds of getting a 2nd heart attach by l439%

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managerial economics

Authors: william f. samuelson stephen g. marks

7th edition

9781118214183, 1118041585, 1118214188, 978-1118041581

Students also viewed these Mathematics questions