Calculates the quantile-based upper credible limit.

upper(x, conf_level = 0.95, na_rm = FALSE)

Arguments

x

A numeric vector of MCMC values.

conf_level

A numeric scalar between 0 and 1 specifying the confidence level.

na_rm

A flag specifying whether to remove missing values.

Value

A number.

Details

By default it returns the 95% credible limit which corresponds to the 97.5% quantile.

See also

Other summary: kurtosis(), lower(), pvalue(), pzeros(), skewness(), svalue(), variance(), xtr_mean(), xtr_median(), xtr_sd(), zeros(), zscore()

Examples

upper(as.numeric(0:100))
#> [1] 97.5