summarise_dist {adaptr} | R Documentation |
Summarise distribution
Description
Used internally, to summarise posterior distributions, but the logic does apply to any distribution (thus, the name).
Usage
summarise_dist(x, robust = TRUE, interval_width = 0.95)
Arguments
x |
a numeric vector of posterior draws. |
robust |
single logical. if |
interval_width |
single numeric value ( |
Details
MAD-SDs are scaled to correspond to SDs if distributions are normal,
similarly to the stats::mad()
function; see details regarding calculation
in that function's description.
Value
A numeric vector with four named elements: est
(the median/mean),
err
(the MAD-SD/SD), lo
and hi
(the lower and upper boundaries of the
interval).