Documentation Example 4 for PROC CAUSALGRAPH
/****************************************************************/
/* S A S S A M P L E L I B R A R Y */
/* */
/* NAME: CAGREX4 */
/* TITLE: Documentation Example 4 for PROC CAUSALGRAPH */
/* PRODUCT: STAT */
/* SYSTEM: ALL */
/* KEYS: graphical causal models */
/* PROCS: CAUSALGRAPH */
/* DATA: */
/* */
/* SUPPORT: clthom */
/* UPDATE: July 03, 2018 */
/* REF: PROC CAUSALGRAPH, Example 4 */
/* MISC: Special thanks to Noah Greifer */
/****************************************************************/
proc causalgraph common;
model "Thor12SimpleHDL"
Ethnicity ==> Nutrition Smoking,
Gender ==> Nutrition Urate,
Gout ==> CVD,
Nutrition ==> PreviousHDL Urate,
CurrentHDL ==> CVD,
PreviousHDL ==> StatinUse,
Smoking ==> CVD,
StatinUse ==> CurrentHDL,
Urate ==> CVD Gout;
model "Thor12AltHDL"
Ethnicity ==> Nutrition Smoking,
Gender ==> Nutrition Urate,
Gout ==> CVD,
Nutrition ==> PreviousHDL Urate,
CurrentHDL ==> CVD,
PreviousHDL ==> StatinUse,
Smoking ==> CVD,
StatinUse ==> CurrentHDL CVD,
Urate ==> CVD Gout;
identify Urate ==> CVD;
unmeasured Nutrition PreviousHDL;
run;