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