restrict_by_labels: Reduce nodal types using labels

Description Usage Arguments Value See Also

View source: R/set_restrictions.R

Description

Reduce nodal types using labels

Usage

1

Arguments

model

A causal_model. A model object generated by make_model.

labels

A list of character vectors specifying nodal types to be kept or removed from the model.

keep

Logical. If 'FALSE', removes and if 'TRUE' keeps only causal types specified by restriction.

Value

An object of class causal_model. The causal types and nodal types in the model are reduced according to the stated restriction.

See Also

Other restrictions: restrict_by_query(), set_restrictions()


CausalQueries documentation built on July 1, 2020, 7:46 p.m.