Question: You can read the data into R with lines such as setwd ( C: / ECN 4 1 0 ) toy = read.csv

You can read the data into R with lines such as
setwd("C:/ECN410")
toy = read.csv("H03.toy.csv", header = T)
Create an indicator variable that equals 1 when X2 is greater than or equal to 100. You can use the ifelse() command to do this.
a) Regress YA on X1 and X2. What is the R squared value?
b) Examine the plot of the residuals versus the fitted values.
True or False: the residuals appear to have no relationship with the fitted values.

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 Databases Questions!