Use this function if you added the @covariates
or @input
attributes or
specified a user-defined tag (via @tag
) in one or more parameter blocks
and need to extract that information. Also, using the $INPUT
block to
declare parameters will automatically add the input
tag (via @input
).
Once these attributes / tags are added, you can use check_data_names()
to
reconcile names of input data sets against tagged model parameters.
Model specification
Note: it is good practice to tag parameters where appropriate with input
or covariates
as these will automatically be expected on input data when
you call check_data_names()
. User-defined tags are also possible, but you
will need to alert check_data_names()
to look for them.
Model Specification Examples
You can use the $INPUT
block to add the input
tag on these parameters
Tag some covariates in the model
A user-defined tag
Examples
mod <- mrgsolve::house()
param_tags(mod)
#> name tag
#> 1 WT covariates
#> 2 SEX covariates