TwoWaySA | R Documentation |
This function displays a two-way sensitivity analysis (TWSA) graph by estimating a linear regression metamodel of a PSA for a given decision-analytic model
TwoWaySA(strategies = NULL, y, x, parm1, parm2, range1 = NULL,
range2 = NULL, poly.order = 2, maximize = TRUE, txtsize = 12)
strategies |
String vector with the name of the strategies |
y |
Matrix with the model outputs |
x |
Matrix with the model inputs or parameters |
parm1 |
String with the name of the first parameter of interest |
parm2 |
String with the name of the second parameter of interest |
range1 |
Range of the first parameter of interest. Default: NULL range. If range1=NULL, the lower and upper bounds of the sample are used. |
range2 |
Range of the second parameter of interest. Default: NULL range. If range2=NULL, the lower and upper bounds of the sample are used. |
poly.order |
Order of polynomial for the linear regression metamodel. Default: 2 |
maximize |
If |
txtsize |
Font size for ggplot graph. Default: 12 |
twsa A ggplot2
object with the TWSA graph of parm1
and
parm2
on the outcome of interest that can be posteriorly formatted
with ggplot2
function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.