*Workshop: IPUMS Time Use: Using the Leave Module to STudy Work-Family Balance *Practice Exercise cd “[path]/foldername” use “atusleave.dta”, clear summarize active passive wrkhomeable wrkhomefreq female spousepres youngchild //examine variables of interest tab wrkhomeable mean active passive hist active hist passive //examine weights - Note: rlvwt_n is a series of replicate weights and must be used with svyset. tab lvwt sum lvwt svyset [pweight=lvwt], sdrweight(rlvwt_1 - rlvwt_160) vce(sdr) //examine bivariate models regress active wrkhomeable regress passive wrkhomeable //examine models with covariates regress active female i.spousepres youngchild working regress passive female i.spousepres youngchild working //examine subpopulation models regress active female i.spousepres youngchild working if wrkhomeable==0 regress passive female i.spousepres youngchild working if wrkhomeable==0 regress active female i.spousepres youngchild working if wrkhomeable==1 regress passive female i.spousepres youngchild working if wrkhomeable==1 //Does the frequency of working from home matter? regress active i.wrkhomefreq female i.spousepres youngchild working if wrkhomeable==1 regress passive i.wrkhomefreq female i.spousepres youngchild working if wrkhomeable==1 close