Answered step by step
Verified Expert Solution
Question
1 Approved Answer
USING R Simulate data Xfrom rnorm(n = 60, mean = 0,sd = 2) and Yfrom rnorm(n = 60, mean = 4+ 2.5 X, sd =
USING R
Simulate data Xfrom rnorm(n = 60, mean = 0,sd = 2) and Yfrom rnorm(n = 60, mean = 4+ 2.5 X, sd = 10) using set.seed(6). Fitting a linear regression of Y on X usingY= B0 + B1x + , where iidN(0, 2 ).
1) Plot the data and add the fitted line.
2)b) Extract the p-value attached to the estimator 1 from summary(). This is the p-value according to the null hypothesis that 1 = 0. Would youreject the null hypothesis?
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