ce_plane: Plot an individual-level or average cost-effectiveness plane...

Description Usage Arguments Value Examples

View source: R/ce_plane.R

Description

ce_plane Plots the results from CEA forests, optionally with uncertainty estimates from an NMB forest.

Usage

1
2
3
4
5
6
7
8
9
ce_plane(
  forest,
  alpha = 0.05,
  type = "individual",
  R = 999,
  subset = NULL,
  WTP = NULL,
  certainty_groups = FALSE
)

Arguments

forest

A trained CEA forest.

alpha

The desired confidence level, defaults to 0.05.

type

A string (either "individual" or "average") specifying which type of cost-effectiveness plane to plot. Defaults to individual.

R

Number of bootstrap replicates (only used for average CE planes).

subset

A specified subpopulation to compute the plane for (only used for average CE planes). Defaults to NULL.

WTP

The willingness to pay per one unit increase in the outcome. Not used when certainty_groups is TRUE. Re-estimate the forest to change WTP in that case. Uses the WTP from the forest object by default.

certainty_groups

Color code individual estimates based on certainty groups? Defaults to FALSE.

Value

A ggplot2 object.

Examples

1
2
3
4
## Not run: 
To be added...

## End(Not run)

bonander/CEAforests documentation built on April 1, 2021, 10:57 a.m.