TwoWaySA: Two-way sensitivity analysis using linear regression...

Description Usage Arguments Value

Description

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

Usage

1
2
TwoWaySA(strategies = NULL, y, x, parm1, parm2, range1 = NULL,
  range2 = NULL, poly.order = 2, maximize = TRUE, txtsize = 12)

Arguments

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 TRUE, plot of strategy with maximum expected outcome (default); if FALSE, plot of strategy with minimum expected outcome

txtsize

Font size for ggplot graph. Default: 12

Value

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


feralaes/dampack documentation built on May 16, 2019, 12:48 p.m.