substitutes: Make statement for substitutes

View source: R/query_helpers.R

substitutesR Documentation

Make statement for substitutes

Description

Generate a statement for X1, X1 substitute for each other in the production of Y

Usage

substitutes(X1, X2, Y)

Arguments

X1

A character. The quoted name of the input node 1.

X2

A character. The quoted name of the input node 2.

Y

A character. The quoted name of the outcome node.

Value

A character statement of class statement

See Also

Other statements: complements(), decreasing(), increasing(), interacts(), non_decreasing(), non_increasing(), te()

Examples


get_query_types(model = make_model('A -> B <- C'),
         query = substitutes('A', 'C', 'B'),map = "causal_type")

query_model(model = make_model('A -> B <- C'),
         queries = substitutes('A', 'C', 'B'),
         using = 'parameters')


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