/* This file shows how to use Stata to examine the assumptions of our linear models. */ /* Create Example Dataset */ do "SOCY602-Diagnostics-Example-CREATE.do" /* Show Scatter plots of the Data */ do "SOCY602-Diagnostics-Example-SCATTERPLOTS.do" /* Check for Normality */ do "SOCY602-Diagnostics-Example-NORMALITY.do" /* What is the Effect of Outlting Cases? */ do "SOCY602-Diagnostics-Example-RESULTS.do" /* Show Residual Plots */ do "SOCY602-Diagnostics-Example-RESIDPLOTS.do" /* Plot the Leverage Values */ do "SOCY602-Diagnostics-Example-HAT PLOT.do" /* DFITS Analysis */ do "SOCY602-Diagnostics-Example-DFITS.do" /* DFBETA Analysis */ do "SOCY602-Diagnostics-Example-DFBETA.do" /* Cook's D Analysis */ do "SOCY602-Diagnostics-Example-COOKSD.do" /* Put Several Diagnostics Together */ do "SOCY602-Diagnostics-Example-UNUSUAL AND INFLUENTIAL.do" /* COVAR Analysis */ do "SOCY602-Diagnostics-Example-COVRATIO.do"