/* Summarize key variables in PSID. Initial goal is to check year-to-year changes when bringing in more data */ use ../input_data/psid_analytic.dta * Predictors global dvars black hispan hsless college educ1 educ2 educ3 educ4 male global cont age bmi #d ; global chldvars poorchldhlth chldmissschool chldmeasles chldmumps chldcknpox chldvision chldparsmk chldasthma chlddiab chldresp chldspeech chldallergy chldheart chldear chldszre chldmgrn chldstomach chldhibp chlddepress chlddrug chldpsych ; #d cr * Transitioned outcomes global bin_psid_hrs died partdied /*nhmliv*/ global bin_hlth stroke hearte anyexercise cancre hibpe diabe lunge /*smoke_start smoke_stop k6severe */ global bin_econ oasiclaim diclaim ssiclaim hicap_nonzero igxfr_nonzero wlth_nonzero fullparttime proptax_nonzero global ols logbmi hicap igxfr fu_fiitax_ind fu_siitax_ind ssdiamt ssiamt ssoasiamt proptax global multlogit laborforcestat inscat global order adlstat iadlstat births paternity srh satisfaction k6score foreach var of global dvars { tab year `var', row tab year `var' [aw=weight], row } foreach var of global cont { bys year: sum `var' bys year: sum `var' [aw=weight] } foreach var of global chldvars { bys year: sum `var' bys year: sum `var' [aw=weight] } foreach var of global bin_psid_hrs { tab year `var', row tab year `var' [aw=weight], row } foreach var of global bin_hlth { tab year `var', row tab year `var' [aw=weight], row } foreach var of global bin_econ { tab year `var', row tab year `var' [aw=weight], row } foreach var of global ols { bys year: sum `var' bys year: sum `var' [aw=weight] } foreach var of global multlogit { bys year: tab `var' bys year: tab `var' [aw=weight] } foreach var of global order { bys year: tab `var' bys year: tab `var' [aw=weight] bys year: sum `var' bys year: sum `var' [aw=weight] } capture log close