var_in_query: List of nodes contained in query

View source: R/helpers.R

var_in_queryR Documentation

List of nodes contained in query

Description

List of nodes contained in query

Usage

var_in_query(model, query)

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

Value

A vector indicating which variables are included in a query


CausalQueries documentation built on Oct. 20, 2023, 1:06 a.m.