Learn R Programming

CausalQueries (version 0.0.3)

translate_dagitty: Puts your DAG into 'dagitty' syntax (useful for using their plotting functions)

Description

If confounds are indicated (provided in attr(model$P, 'confounds')), then these are represented as bidirectional arcs.

Usage

translate_dagitty(model)

Arguments

model

A causal_model. A model object generated by make_model.

Value

A dagitty translation of DAG

Examples

Run this code
# NOT RUN {
model <- make_model('X -> Y')
CausalQueries:::translate_dagitty(model)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab