clean_statement {CausalQueries}R Documentation

Helper to clean and check the validity of causal statements specifying a DAG. This function isolates nodes and edges specified in a causal statements and makes them processable by make_dag

Description

Helper to clean and check the validity of causal statements specifying a DAG. This function isolates nodes and edges specified in a causal statements and makes them processable by make_dag

Usage

clean_statement(statement)

Arguments

statement

character string. Statement describing causal relations between nodes.

Value

a list of nodes and edges specified in the input statement


[Package CausalQueries version 1.3.3 Index]