Question: Note that this exercise replicates Section 5.3 in Stock and Watson, but with the MA data instead of CA data. Hence, it would be helpful

 Note that this exercise replicates Section 5.3 in Stock and Watson,

Note that this exercise replicates Section 5.3 in Stock and Watson, but with the MA data instead of CA data. Hence, it would be helpful to read the section once again. Generate a new variable Di in R that equals either 0 or 1 , depending on whether the student-teacher ratio is less than 17 , i.e., Di={1ifthestudentteacherratioinithdistrict data("MASchools", package = "AER") There are alternative ways to load the data in R. In tutorial sessions for example, we loaded the package first and then loaded the data. R-tips: You might want to attach the dataset via: > attach(MASchools) You do not need to attach the dataset for this assessment. By attaching the dataset, however, you do not have to specify to which dataset the variables belong when you use them. For example, suppose you want to get summary statistics of the variable salary. Then, before attaching the dataset, you have to do this via > summary(MASchools\$salary) But, once you attach the dataset "MASchools", you can do the same thing simply by > summary(salary)

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