rvci {rv}R Documentation

Credible (Uncertainty) Intervals for Random Scalars

Description

Computes credible (uncertainty) intervals for a given vector.

Usage

  rvci(obj, interval=0.95, one.sided=FALSE, left=TRUE)

Arguments

obj random scalar or vector
interval a number between 0 and 1
one.sided logical, FALSE if two-sided interval is desired
left logical, indicating if the left one-sided interval is desired

Value

For two-sided intervals, an array of numbers of dimension c(2,length(x)), for one-sided intervals, a vector of the same length as x.

Author(s)

Jouni Kerman kerman@stat.columbia.edu http://www.stat.columbia.edu/~kerman

References

Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.

Examples

  rvci(rvnorm(1), interval=0.683) # Should be about c(-1,1).

[Package rv version 0.911 Index]