Learn R Programming

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

Run this code
#

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

#

Run the code above in your browser using DataLab