capture log close set scheme s2manual set more off estimates clear local job cda_notes_ch2_reg local date "18Apr2006" log using cda_notes_ch2_reg, replace version 9.1 // cda_notes_ch2_reg: ICPSR CDA Ch. 2 - linear regression // 18Apr2006 jsl use regjob3, clear * 1: descriptive statistics summarize job100 fem phd100 ment fel art cit * 2: pairwise correlations pwcorr job100 fem phd100 art * 3: graph a pair of variables twoway (scatter phd100 job100, msymbol(circle_hollow)), /// yscale(range(0 500.)) xscale(range(0 500.)) xsize(6) ysize(6) /// caption("(`job' `date')", size(tiny)) graph export `job'_pair.emf, replace * 4: scatterplot matrix graph matrix job100 fem phd100 art, half msymbol(circle_hollow) /// xsize(6) ysize(6) caption("(`job' `date')", size(tiny)) graph export `job'_matrix.emf, replace * 5: regression regress job100 fem phd100 ment fel art cit * 6: standardized coefficients listcoef, cons help log close