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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!