Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started