Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Put the following table (columns are (left to right): country, cigarette consump

ID: 3240297 • Letter: P

Question

Put the following table (columns are (left to right): country, cigarette consumption per adult per year, rate at which people die from coronary heart disease per 1000,000 people) into a dataframe in R

Do the following:

1). Run a linear regression that examines how CHD rates are predicted by cigarette consumption

2). What is the equation of the regression line?

3). What are the units on the slope?

4). Interpret the slope in this context

United States Canada Australia New Zealand United Kingdom Switzerland Ireland Iceland Finland West Germany Netherlands Greece Austria Belgium Mexico Italy Denmark France Sweden Spain Norway 3900 3350 3220 3220 2790 2780 2770 2290 2160 1890 1810 1800 1770 1700 1680 1510 1500 1410 1270 1200 1090 256.9 211.6 238.1 211.8 194.1 124.5 187.3 110.5 233.1 150.3 124.7 41.2 182.1 118.1 31.9 114.3 144.9 59.7 126.9 43.9 136.3

Explanation / Answer

Answer:

Put the following table (columns are (left to right): country, cigarette consumption per adult per year, rate at which people die from coronary heart disease per 1000,000 people) into a dataframe in R

1). Run a linear regression that examines how CHD rates are predicted by cigarette consumption

x<- c(3900,3350,3220,3220,2790,2780,2770,2290,2160,1890,1810,1800,1770,1700,1680,1510,1500,1410,1270,1200,1090)

y<-c(256.9,211.6,238.1,211.8,194.1,124.5,187.3,110.5,233.1,150.3,124.7,41.2,182.1,118.1,31.9,114.3,144.9,59.7,126.9,43.9,136.3)

mod=lm(y~x)

summary(mod)

R output

lm(formula = y ~ x)

Residuals:

    Min      1Q Median      3Q     Max

-84.835 -40.809   5.058 28.814 87.518

Coefficients:

            Estimate Std. Error t value Pr(>|t|)   

(Intercept) 15.77115   29.57889   0.533 0.600085   

x            0.06010    0.01293   4.649 0.000175 ***

---

Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 46.71 on 19 degrees of freedom

Multiple R-squared: 0.5322,    Adjusted R-squared: 0.5076

F-statistic: 21.62 on 1 and 19 DF, p-value: 0.0001749

2). What is the equation of the regression line?

y=CHD rate

x= cigarette consumption

y = 15.77115+0.06010

3). What are the units on the slope?

Rate per 1000,000 people

4). Interpret the slope in this context

One cigarette consumption increases per adult per year, there is an increase in the death rate from coronary heart disease of 0.06010 per 1000,000 people.