Reduce nodal types using labels
restrict_by_labels(model, labels, given = NULL, keep = FALSE)
A list with two components: 1. a vector with parameters names of parameters implicated by the restrictions, 2. a vector of subsetting instructions used to identify implicated causal types
A causal_model
. A model object generated by
make_model
.
A list of character vectors specifying nodal types to be kept or removed from the model.
A character vector or list of character vectors specifying
nodes on which the parameter set to be restricted depends. When mixing
labels that are further restricted by given
and ones that are not,
labels without given
restrictions should have given
specified as one of NULL
, NA
, ""
or " "
.
Logical. If `FALSE`, removes and if `TRUE` keeps only causal
types specified by restriction
.
Other restrictions:
restrict_by_query()
,
set_restrictions()