Answered step by step
Verified Expert Solution
Link Copied!

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

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

Differential Equations

Authors: Paul Blanchard, Paul S Boyer, Robert L Devaney, Glen R Hall

4th Edition

1133388086, 9781133388081

More Books

Students also viewed these Mathematics questions