cd "${output_path}\tmp\"

cap log close
set logtype text
log using "${output_path}\Results\Table_A1.txt", replace

use "Linked_data.dta", clear

recode sex (2=0)

tabstat birth time_childcare time_childcare_sat time_childcare_sun  age sex hghinc if age>=25 & age<=40 & ((vage>=50 & vage<=70) | (mage>=50 & mage<=70)), statistics(mean sd min max n) columns(statistics)
tabstat vage vretired vtime_childcare vtime_childcare_sat vtime_childcare_sun if age>=25 & age<=40 & vage>=50 & vage<=70, statistics(mean sd min max n) columns(statistics)
tabstat mage mretired mtime_childcare mtime_childcare_sat mtime_childcare_sun if age>=25 & age<=40 & mage>=50 & mage<=70, statistics(mean sd min max n) columns(statistics)

log close



