October 20, 2016 Farrokh Alemi, PhD. Identifying Sequence October 20, 2016 Farrokh Alemi, PhD.
Every Multivariate Analysis Makes Sequence Assumptions
Covariates Are Measured at Baseline
Treatment is after Baseline
Outcomes Are Last
Sequence of Cross-Sectional Study Covariates Treatment Outcome
Sequence of Diagnoses in a Cross-Sectional Study
Longitudinal Studies Indicate Timing
Different Variables for Same Event before or after Treatment
Definition of Variable Can Indicate Sequence Demographics Medical History
Sequence Can Be Discovered, But Is Often Ignored
Many Algorithms Same Conclusions
Install Package install.packages("bnlearn") library(bnlearn)
Read Data, Remove Unwanted Variables d=read.csv("simulatedbundleddata.csv") d=d[,-1] for(i in 1:ncol(d)){ d[,i]=as.factor(d[,i]) }
Download & Paste Blacklist Function Time 1 Time 2 Black list
Now Test Different Algorithms Same Answer ##For grow-shrink use l=gssequence(d) ##For incremental association use l=iambsequence(d) ##For semi-interleaved HITON use l=hitonsequence(d)
Sequence Is Fundamental