

















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















































































ļ° 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.
ļ° 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.