summarise_PSA_: Summarise PSA outputs and report results

View source: R/summarise_PSA_.R

summarise_PSA_R Documentation

Summarise PSA outputs and report results

Description

Summarise PSA outputs and report results

Usage

summarise_PSA_(
  .effs,
  .costs,
  .interventions = NULL,
  .ref = NULL,
  .Kmax = 1e+05,
  .wtp = NULL,
  .plot = FALSE
)

Arguments

.effs

A matrix containing the effects from PSA. Number of columns is equal to the interventions while the number of rows is equal to the number of PSA simulations to be summarised.

.costs

A matrix containing the costs from PSA. Number of columns is equal to the interventions while the number of rows is equal to the number of PSA simulations to be summarised.

.interventions

A vector containing the names of all interventions. If not provided or less names than needed is provided, the function will generate generic names, for example intervention 1.

.ref

An integer indicating the index of the reference intervention. This parameter is ignored if more than two interventions are under analysis.

.Kmax

The maximum willingness-to-pay threshold to use in the analysis. This parameter is ignored if wtp is provided.

.wtp

A vector of numerical values declaring the willingness-to-pay (WTP) values to use in the analysis. If NULL (default) a range of WTP values (up to .Kmax will be used.

.plot

A boolean, FALSE (default), for whether to generate plots.

Value

A list of class psa with 24 elements.


W-Mohammed/ShinyPSA documentation built on April 24, 2022, 6:57 p.m.