makeCIs: Quantile-based credible intervals for a columns of a matrix

Description Usage Arguments See Also Examples

View source: R/makeCIs.R

Description

Function to calculate (two-sided) credible intervals based on quantiles of a matrix columns.

Usage

1
makeCIs(makeCI.obj, alpha = 0.05, na.rm = FALSE)

Arguments

alpha

What Type I error level alpha should be used? Defaults to 0.05

na.rm

Should NAs be excluded? Defaults to FALSE

makeCI.mat

Matrix or data frame for which quantiles will be found

See Also

makeCI

Examples

1
2
3
4
5
6
7
8
## Calculation for a matrix
theta1 = rnorm(n = 1000, mean = 0, sd = 10)
theta2 = rnorm(n = 1000, mean = 0, sd = 10)
my.matrix = cbind(theta1, theta2)
makeCIs(my.matrix)
## Calculation for a data frame
my.df = as.data.frame(my.matrix)
makeCIs(my.df)

lcomm/ltools documentation built on May 20, 2019, 11:28 p.m.