Documentation Example 2 for PROC CAUSALGRAPH
/****************************************************************/
/* S A S S A M P L E L I B R A R Y */
/* */
/* NAME: CAGREX2 */
/* TITLE: Documentation Example 2 for PROC CAUSALGRAPH */
/* PRODUCT: STAT */
/* SYSTEM: ALL */
/* KEYS: graphical causal models */
/* PROCS: CAUSALGRAPH */
/* DATA: */
/* */
/* SUPPORT: clthom */
/* UPDATE: July 03, 2018 */
/* REF: PROC CAUSALGRAPH, Example 2 */
/* MISC: Special thanks to Noah Greifer */
/****************************************************************/
proc causalgraph method=adjustment maxlist=1 nosort;
model "Timm17HealthBehavior"
Age ==> Parity PFAS Education,
Parity ==> PrevBF Duration PFAS,
PrevBF ==> PFAS Duration,
PFAS ==> Duration,
Education ==> Duration HealthBehavior Employment,
HealthBehavior ==> PFAS Duration BMI Alcohol Smoking,
Employment ==> HealthBehavior Duration,
BMI Alcohol Smoking ==> Duration;
identify PFAS ==> Duration;
unmeasured PrevBF HealthBehavior;
run;