Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

h. Can we conclude that smoking causes lower resting pulse rates? Why or why not? i. Create a scatterplot where X=Weight and Y=Resting pulse rate,

image text in transcribedimage text in transcribedimage text in transcribed
image text in transcribedimage text in transcribedimage text in transcribed
h. Can we conclude that smoking causes lower resting pulse rates? Why or why not? i. Create a scatterplot where X=Weight and Y=Resting pulse rate, and have different colors and symbols for the different smoking groups. Interpret this scatterplot. j. Now add an interaction term between smoker yes and weight to your model from part c., and write out the population model. k. Fit the model from part j. Write out the estimated regression equation. 1. What is the R2 value and o of this interaction model, and how do these values compare to the model that was fit in part e. ?[in pounds), smoking status [1 for smoker and U for non-smoker), and active pulse rate (beats per minute) recorded. We will use resting pulse rate as the response variable Y, and explanatory variables of weight as X1 and smoking status as X2. Run the following line in B, after you have imported the data set to create a new variable called \"Smoker"I with categories Yes and No. pulse$Smoker - ifelse(pulse$Smoke==1, "Yes", "110") a. Fit a model in R using response variable Y and only the covariate X2 of smoking status. Test if the coefcient on X2 is equal to U. State the null and alternative hypothesis, the test statistic, p-value and make a conclusion. b. Now conduct a two sample t-test with equal varaince in R, where the response is resting pulse rate and the two groups/ samples are smokers and non-smokers. How does this test correspond to the test from part a. ? c. Write out the population model where we have response Y and covariates/ explanatory variables X1 and X2 with no interaction term in context of the study. d. With respect to the effect of weight on resting pulse rate, what does it mean in context of the study that we do not have an interaction term [with smoking status) in the model from part c. ? Explain in a sentence or two. e. Fit the model from part c. in R and report the coefcient of determination [multiple R2 value) and report the estimate of 0'5. f. How many observations are there in the dataset? g. Using the model output from part e., test the coefficient on Smoking yes [X2) being equal to [} or not. Write the null and alternative hypothesis, test statistic, p-value, and make a conclusion in context of the study [be careful of your wording). 5. Remember the form of the prediction interval and the form of the standard error of the prediction. For each part, state what will happen to the prediction interval [stay the same, be wider, or be narrower). a. The sample size is increased. b. If Xp gets closer to X, the average of the X covariate. c. If the variability of the response variable decreases. d. The average of the response is increased. 6. The sum of squares for the regression model, SSR, for the regression of Y on X was 110, and the sum of squared errors, SSE, was 40. Calculate and interpret the value of R2. 7. We will use the Pulse.txt dataset for this question. This dataset is from an observational study where subjects had their resting pulse rate [beats per minute), height [in inches), weight

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

An Introduction To Categorical Data Analysis

Authors: Alan Agresti

2nd Edition

0470653205, 9780470653203

More Books

Students also viewed these Mathematics questions

Question

An improvement in the exchange of information in negotiations.

Answered: 1 week ago