conf_envelope {amt}R Documentation

Create confidence envelopes from a uhc_data_frame

Description

Simplifies sampled distributions in a uhc_data_frame to confidence envelopes

Usage

conf_envelope(x, levels = c(0.95, 1))

Arguments

x

⁠[uhc_data]⁠ An object of class uhc_data_frame, as returned by the function as.data.frame.uhc_data().

levels

⁠[numeric]⁠ A numeric vector specifying the desired confidence levels. Defaults to c(0.95, 1) to create 95% and 100% confidence intervals.

Details

This can dramatically improve plotting time for UHC plots by simplifying the many sampled lines down to the boundaries of a polygon.

Value

Returns a data.frame with columns:

Author(s)

Brian J. Smith

See Also

prep_uhc(), plot.uhc_envelopes()


[Package amt version 0.2.2.0 Index]