clear all capture log close set more off **** Openning a log file in txt format in order to save the output******** log using example_3.txt, text replace ****openning the data file***** use "L:\Alma Kudebayeva\Fall2017\ECN5012 Econometrics\Chapter3\eaef22.dta" *****Description of all variables des * decsriptive statistics for the selected variables** sum S ASVABC SM SF tab S **** correlation matrix******** corr S ASVABC SM SF ****OLS regression *********** reg S ASVABC SM SF predict S1 ******predict residuals predict SRES, residual **** the graph of the histogram of residuals histogram SRES ************ reg S ASVABC SM reg S ASVABC SF ***** sum EARNINGS reg EARNINGS S EXP *****Ec3.17****** g PWE = AGE - S - 5 reg EARNINGS S PWE reg EARNINGS S PWE AGE log close