next up previous contents
Next: Concept Lab Up: Inferences for Simple Linear Previous: Residual Plots and Regression

Computer Lab

The goal of this lab is to learn how to use StataQuest to do data analysis and how to use the diagnostic plots provided by Stataquest to check the model assumption. We will need the following commands for the regression analysis: Statistics tex2html_wrap_inline5299 Simple Regression. There are many interesting diagnostic plots provided by StataQuest. To understand them, we can use the following example:

First open the data file reg.dta under the datagen directory. There are several variables in the file:

You may look at the normal quantile plot of e and the scatter plot of e versus X and then compare them with the diagnostic plots provided by Stataquest after you regress Y on X. You may also want to get the diagnostic plots after regressing tex2html_wrap_inline5309 and tex2html_wrap_inline5313 on X, respectively. What do you learn from the plots? Now compare the LS lines for Y, tex2html_wrap_inline5317 , tex2html_wrap_inline5327 vs. X. What kind of observation has more potential to be influential?



Jan Lethen
Wed Nov 13 16:20:46 CST 1996