* Adapted from programs found here https://www.hsph.harvard.edu/miguel-hernan/causal-inference-book/ ; /*************************************************************** PROGRAM 13.1 Estimating the mean outcome within levels of treatment and confounders Data from NHEFS ***************************************************************/; libname causinf "V:\sismid2020"; /* some preprocessing of the data */ data nhefs; set causinf.nhefs_book; if .