Docsity

Simple and Multiple Regression - Econometrics - Lecture Slides, Slides of Econometrics and Mathematical Economics

Partial preview of the text

Download Simple and Multiple Regression - Econometrics - Lecture Slides and more Slides Econometrics and Mathematical Economics in PDF only on Docsity!

Simple and Multiple Regression

2.1 Simple Linear Regression

 Let's examine the relationship between the size of school and academic performance to see if the size of the school is related to academic performance.  For this example, api00 is the dependent variable and enroll is the predictor.

Predicted Value

 After you run a regression, you can create a variable that contains the predicted values using the predict command.  For this example, our new variable name will be fv

400 600 800 1000 api 2000 0 500 1000 1500 number of students

We can combine scatter with lfit to show a scatterplot with fitted values.