ci: Confidence Interval

Description Usage Arguments Value See Also Examples

View source: R/corregp.r

Description

This is the basic function for computing a confidence interval on the basis of a sample of data values.

Usage

1
ci(x, cl = 0.95, nq = TRUE)

Arguments

x

A numeric vector.

cl

The confidence level for the confidence interval. Defaults to 0.95.

nq

Logical specifying whether to use a normal quantile (i.e. apply qnorm) in the computation of the confidence interval. Defaults to TRUE. If FALSE, then the confidence interval is computed directly with the quantile function.

Value

A vector with two components Lower and Upper giving the lower and upper confidence limits respectively.

See Also

ciplot.corregp, anova.corregp, agplot.corregp, confint.

Examples

1
2
3
4
5
6
7
## Not run: 
data(HairEye)
haireye.crg <- corregp(Eye ~ Hair * Sex, data = HairEye, b = 3000)
ci(haireye.crg$conf$eigen[, 1])
ci(haireye.crg$conf$eigen[, 2])

## End(Not run)

corregp documentation built on May 30, 2017, 2:52 a.m.

Search within the corregp package
Search all R packages, documentation and source code