PIOutfun: Create a prediction interval output function

View source: R/outfun.R

PIOutfunR Documentation

Create a prediction interval output function

Description

Create a prediction interval output function

Usage

PIOutfun(
  variable,
  strata = get_default_strata(),
  level = 0.9,
  name = sprintf("pi_%s_%i%%", paste0(variable, collapse = "_"), round(level * 100))
)

Arguments

variable

variable(s) used to compute the prediction interval, character vector

strata

named vector with the strata to use, default is c(SCENARIO="all", ARM="all")

level

PI level, default is 0.9 (90% PI)

name

name of the output function. Default is 'pi_<variable>_<level>pc'.

Value

a pi_outfun object


campsis documentation built on Aug. 5, 2026, 9:07 a.m.