version 13.1 * Create the fake data used in HW 02 -- Ted Cruz problem use https://www3.nd.edu/~rwilliam/statafiles/wages, clear * Set up data. Note: The data are fake!!! gen cruz = union gen male = occ gen socialcons = south == 0 center lwage, gen(fiscalcons) replace fiscalcons = fiscalcons * 6 center fiscalcons, inplace egen ses = cut(ed), group(3) replace ses = 3 - ses keep cruz male socialcons fiscalcons ses label variable cruz "Supports Ted Cruz?" label variable male "Gender (1 = male, 0 = female)" label variable socialcons "Social Conservative" label variable fiscalcons "Fiscal conservativism scale (centered)" label variable ses "Socio-Economic Status (ordinal)" label define cruz 0 "Opposes Cruz" 1 "Supports Cruz" label define gender 0 "Female" 1 "Male" label define socialcons 1 "Social Conservative" 0 "Not Social Conservative" label define ses 1 "Lower class" 2 "Middle class" 3 "Upper class" label values cruz cruz label values male gender label values socialcons socialcons label values ses ses compress saveold "C:\Dropbox\statafiles\cruz.dta", version(12) replace