exploreDAG {midoc} | R Documentation |
Explore whether relationships between fully observed variables in the specified dataset are consistent with the proposed directed acyclic graph (DAG) using localTests functionality.
exploreDAG(mdag, data)
mdag |
The DAG, specified as a string using dagitty syntax |
data |
A data frame containing all the variables stated in the DAG. All ordinal variables must be integer-coded and all categorical variables must be dummy-coded. |
A message indicating whether the relationships between fully observed variables in the specified dataset are consistent with the proposed DAG
exploreDAG(mdag="matage -> bmi7 mated -> matage mated -> bmi7
sep_unmeas -> mated sep_unmeas -> r",
data=bmi)