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 with AI-Powered 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

Entrepreneurship

Authors: Andrew Zacharakis, William D Bygrave

5th Edition

1119563097, 9781119563099

Students also viewed these Mathematics questions

Question

Discuss the six strategic roles of a foreign facility.

Answered: 1 week ago