sens_range: Sensitivity analysis at evenly spaced values

View source: R/sens_range.R

sens_rangeR Documentation

Sensitivity analysis at evenly spaced values

Description

This is always a univariate (one parameter at a time) sensitivity analysis.

Usage

sens_range(mod, ..., .n = 5, .factor = NULL)

sens_range_factor(mod, ..., pars = names(param(mod)), .n = 5, .factor = 2)

Arguments

mod

the model object

...

named numeric vectors of length 2, specifying the minimum and maximum value for that parameter

.n

number of evenly spaced parameter values to simulate

.factor

used to create a range for sensitivity analysis based on the value of the selected parameters; the upper end of the range is .factor times the parameter value and the lower end of the range is the parameter value divided by .factor

pars

a character vector of parameter names on which to do sensitivity analysis

Examples

mod <- mrgsolve:::house() %>% ev(amt = 100)

mod %>%
  sens_range(CL = c(0.5,1.5), VC = c(20,30), .n = 5)


mhismail/mrgsolvetk documentation built on May 7, 2023, 1:52 p.m.