Generate a sequence of parameters based on CV
Arguments
- mod
a model object.
- ...
model parameter names.
- .cv
a coefficient of variation used to determine range of test parameters.
- .n
number of parameters to simulate in the sequence.
- .nsd
number of standard deviations used to determine the range.
- .digits
if
numeric
, the number of significant digits in the parameter sensitivity values are set usingbase::signif()
.
Examples
mod <- mrgsolve::house()
mod %>%
parseq_cv(CL,VC) %>%
sens_each()
#> # A tibble: 24,050 × 7
#> case time p_name p_value dv_name dv_value ref_value
#> * <int> <dbl> <chr> <dbl> <chr> <dbl> <dbl>
#> 1 1 0 CL 0.549 GUT 0 0
#> 2 1 0 CL 0.549 CENT 0 0
#> 3 1 0 CL 0.549 RESP 50 50
#> 4 1 0 CL 0.549 DV 0 0
#> 5 1 0 CL 0.549 CP 0 0
#> 6 1 0.25 CL 0.549 GUT 0 0
#> 7 1 0.25 CL 0.549 CENT 0 0
#> 8 1 0.25 CL 0.549 RESP 50 50
#> 9 1 0.25 CL 0.549 DV 0 0
#> 10 1 0.25 CL 0.549 CP 0 0
#> # ℹ 24,040 more rows