make_dag {CausalQueries}R Documentation

Helper to run a causal statement specifying a DAG into a data.frame of pairwise parent child relations between nodes specified by a respective edge.

Description

Helper to run a causal statement specifying a DAG into a data.frame of pairwise parent child relations between nodes specified by a respective edge.

Usage

make_dag(statement)

Arguments

statement

character string. Statement describing causal relations between nodes. Only directed relations are permitted. For instance "X -> Y" or "X1 -> Y <- X2; X1 -> X2"

Value

a data.frame with columns v, w, e specifying parent, child and edge respectively


[Package CausalQueries version 1.3.0 Index]