DOC PREVIEW
UCSC ECON 104 - LECTURE NOTES

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Steve—this is the program I used to merge the grades, select the sample, and create some variables (which may already be coded in the file you have).use ":machd:SAS612:datafiles:aa final leadership files:summer 2001:cathy12july26.dta"keep if sex==1 & white==1 & hsdrpatf ~=1save ":machd:SAS612:datafiles:aa final leadership files:summer 2001:merge1012wm.silhsgr.dta"use ":machd:SAS612:datafiles:aa final leadership files:summer 2001:cathy11july26.dta"keep if sex==1 & white==1 & hsdrpatf ~=1append using ":machd:SAS612:datafiles:aa final leadership files:summer 2001:merge1012wm.silhsgr.dta"save ":machd:SAS612:datafiles:aa final leadership files:summer 2001:merge1012wm.silhsgr.dta", replaceuse ":machd:SAS612:datafiles:aa final leadership files:summer 2001:cathy10july22.dta"keep if sex==1 & white==1 & hsdrpatf ~=1append using ":machd:SAS612:datafiles:aa final leadership files:summer 2001:merge1012wm.silhsgr.dta"save ":machd:SAS612:datafiles:aa final leadership files:summer 2001:merge1012wm.silhsgr.dta", replace gen mathp=mathpcwm/100gen baplusf=baatf + gradatfgen grade12=(grade==12)gen grade11=(grade==11)gen captonly=teamcapt&~clubpresgen presonly=clubpres&~teamcaptgen short=1-avg-tallgen bmemb=(checkclb|cmember)*tmembergen teamonly=tmember&~bmembgen clubonly=(cmember|checkclb)&~bmembegen soc10=std(soc) if grade==10 egen soc11=std(soc) if grade==11 egen soc12=std(soc) if grade==12 gen socsg=max(soc10, soc11, soc12) egen tidy10=std(tidy) if grade==10 egen tidy11=std(tidy) if grade==11 egen tidy12=std(tidy) if grade==12 gen tidysg=max(tidy10, tidy11, tidy12) egen vigor10=std(vigor) if grade==10 egen vigor11=std(vigor) if grade==11egen vigor12=std(vigor) if grade==12 gen vigorsg=max(vigor10, vigor11, vigor12) egen selfcn10=std(selfcon) if grade==10 egen selfcn11=std(selfcon) if grade==11 egen selfcn12=std(selfcon) if grade==12 gen selfcnsg=max(selfcn10, selfcn11, selfcn12) egen mature10=std(mature) if grade==10 egen mature11=std(mature) if grade==11 egen mature12=std(mature) if grade==12 gen maturesg=max(mature10, mature11, mature12)egen silead10=std(silead) if grade==10egen silead11=std(silead) if grade==11egen silead12=std(silead) if grade==12gen sileadsg=max(silead10, silead11, silead12)drop soc10 soc11 soc12 tidy10 tidy11 tidy12 vigor10 vigor11 vigor12 selfcn10drop selfcn11 selfcn12 mature10 mature11 mature12 silead10 silead11 silead12replace acne=. if acne==0replace acne=0 if acne==2sum acnegen faminc2=. if faminc==6replace faminc2=. if faminc==0replace faminc2=faminc*3000 - 1500 if faminc>0 & faminc<6gen acnemis=(acne==.)gen acnefil=(acne==1)sum acne acnemis acnefilgen dadoff=(dadmilof==3)gen dadnco=(dadmilof==2)gen leadtime=captain+presreplace leadtime=5 if leadtime>5tab leadtime, gen(leadt)gen pmt=dadocc>1replace pmt=1 if dadjob==13|dadjob==16|dadjob==17save ":machd:SAS612:datafiles:aa final leadership files:summer 2001:merge1012wm.silhsgr.dta", replacesum school if state==.sum state if school==5967replace state=24 if state==.save ":machd:SAS612:datafiles:aa final leadership files:summer 2001:merge1012wm.silhsgr.dta",


View Full Document

UCSC ECON 104 - LECTURE NOTES

Download LECTURE NOTES
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view LECTURE NOTES and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view LECTURE NOTES 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?