Learn R Programming

CausalQueries (version 1.3.3)

clean_statement: 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)

Value

a list of nodes and edges specified in the input statement

Arguments

statement

character string. Statement describing causal relations between nodes.