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_typesto see syntax.- join_by
A string or a list of strings. The logical operator joining expanded types when
statementcontains wildcard (.). Can take values'&'(logical AND) or'|'(logical OR). When restriction contains wildcard (.) andjoin_byis 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.
givenmust either be NULL or of the same length asstatement. When mixing statements that are further restricted bygivenand ones that are not, statements withoutgivenrestrictions should havegivenspecified 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()