View source: R/pigsustainsens.R
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.
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
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.