expand_nodal_expression: Helper to expand nodal expression

View source: R/map_query_to_nodal_type.R

expand_nodal_expressionR Documentation

Helper to expand nodal expression

Description

Helper to expand nodal expression

Usage

expand_nodal_expression(model, query, node, join_by = "|")

Arguments

model

A causal_model. A model object generated by make_model.

query

A character string. An expression defining nodal types to interrogate realise_outcomes. An expression of the form "Y[X=1]" asks for the value of Y when X is set to 1

node

A character string. The quoted name of a node.

join_by

A logical operator. Used to connect causal statements: AND ('&') or OR ('|'). Defaults to '|'.

Value

A nodal expression with no missing parents


CausalQueries documentation built on June 22, 2024, 6:50 p.m.