set more off capture log close log using icpsrcda00-mock , replace text // program: icpsrcda00-mock.do // task: example of LRM assignment // project: icpsr cda // author: shawna smith // date: 8July2009 //#0: version 10 clear all set linesize 80 set scheme s2mono // sets look of graphs, etc. //#1: **Open data use icpsr_scireview3.dta , clear **Pick DV & three IVs *DV: totpub *Continuous IV (C): enrol *Dichotomous IV (D): faculty *Other IV (X): female **Check for missing & drop as necessary misschk totpub enrol faculty female, gen(m) tab mnumber, m keep if mnumber==0 **Verify sum totpub enrol tab faculty female, m *ALWAYS remember to save your data after making any changes! save icpsr_scireview3-lrm-sns, replace //#2: **Construct a table for the variables *this output should be used to construct table nmlab totpub enrol faculty female sum totpub enrol faculty female //#3: **regress Y on C, D & X regress totpub enrol faculty female **compute standardized coefficients listcoef, help //#4-#11: in word file only; use output from #3 above log close exit