Question: 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

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 0. State the null and alternative hypothesis, the test statistic, p-Value and make a conclusion. b. Now conduct a two sample t-test 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
