************************************************** **Sample Do-File to Accompany Stata Fundamentals** ************************************************** *Open the data set *You will have to alter this command to match the directory where you saved the sample data set use "U:\wage.dta", clear *describe the data set describe *summarize all variables summarize *generate variables that will be used in regressions generate wage=wkly_earn/wkly_hours generate lwage=log(wkly_earn) generate female=sex==2 tab female generate highschool=education==39|education==40 generate college=education>40 generate agesq=age^2 *log wage regressions regress lwage age agesq female highschool college *probit probit employed age female highschool college mfx