Reduce nodal types using statement
Arguments
- model
a model created by make_model()
- statement
a list of character vectors specifying nodal types to be removed from the model. Use
get_nodal_types
to see syntax.- join_by
A string or a list of strings. The logical operator joining expanded types when
statement
contains wildcard (.
). Can take values'&'
(logical AND) or'|'
(logical OR). When restriction contains wildcard (.
) andjoin_by
is not specified, it defaults to'|'
, otherwise it defaults toNULL
.- given
A character vector or list of character vectors specifying nodes on which the parameter set to be restricted depends.
given
must either be NULL or of the same length asstatement
. When mixing statements that are further restricted bygiven
and ones that are not, statements withoutgiven
restrictions should havegiven
specified as one ofNULL
,NA
,""
or" "
.- keep
Logical. If `FALSE`, removes and if `TRUE` keeps only causal types specified by
restriction
.
Value
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
See also
Other restrictions:
restrict_by_labels()
,
set_restrictions()