- I have a model written in mrgsolve and I wish to do local sensitivity analysis on selected parameters and outputs.
- I would like to plot the results of my sensitivity analysis.
- The user will build and load a model using mrgsolve.
- The user will create a function taking a list of parameters as the first
argument along with other arguments passed by
...
and return data simulated from the model. - The user will specify names of parameters and outputs for sensitivity analyses.
- The sensitivity analysis function will return a long data frame with the
following columns:
time
(orTIME
),var
, the name of the the output;value
the simulated value forvar
,par
, the name of the parameter; andsens
, the value of the sensitivity equation. - A plot method will use ggplot2 to create a plot of
sens
versustime
, grouped and colored bypar
and faceted byvar
.