miscset (version 1.0.0)

confint: Confidence intervals for numeric vectors

Description

Calculate confidence intervals for values of a numeric vector.

Usage

"confint"(object, parm = qnorm, level = 0.95, ..., na.rm = TRUE, ret.attr = TRUE)

Arguments

object
A numeric vector.
parm
Function for quantile calculation. e.g. qnorm, qt
level
Size of confidence (0 < size < 1).
...
Unused.
na.rm
Logical, remove missing values for sd and mean.
ret.attr
Logical, to include the mean value and function arguments as attributes of the returned object.

Value

Returns a numeric vector with the lower and upper range of the confidence interval.

Examples

#

confint(1:3)
confint(1:3, ret.attr = FALSE)

#