pigsustainsens: A function to perform sensitivity analyses on 'pigsustainr'...

Description Usage

View source: R/pigsustainsens.R

Description

Local sensitivity is defined as the partial derivative of the state variables with respect to a change in a parameter. We can approximate for any ODE model computationally, which is what the function below provides. The raw sensitivity value is multiplied by the ratio of the parameter to the original solution, which normalises the sensitivity value.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
pigsustainsens(
  model_name,
  initial_values,
  base_parameters,
  times,
  backend = "cpp",
  sensitivity_parameters = NULL,
  perturb_prop = 0.01,
  n_sims = 1
)

cmgoold/pigsustainr documentation built on Jan. 2, 2022, 1:26 a.m.