Question

Consider the following R code > x <- c(-1.12, -1.28, -2.04, -0.94, -0.51, -0.41, -0.91, 0.14)...

Consider the following R code

> x <- c(-1.12, -1.28, -2.04, -0.94, -0.51, -0.41, -0.91, 0.14)

> y <- c(2.40, 2.10, 1.26, 2.35, 2.58, 2.70, 2.52, 3.16)

> round(mean(x), 4) [1] -0.8838

> round(sd(x), 4) [1] 0.6509

> round(mean(y), 4) [1] 2.3838

> round(sd(y), 4) [1] 0.5483

> round(cor(x,y), 4) [1] 0.9703

Now we want to fit a simple linear regression model to predict y using x. Calculate the estimate of the slope parameter.

Homework Answers

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions