Learn R Programming

corregp (version 2.0.2)

cint.corregp: Confidence Intervals for Correspondence Regression

Description

Method to compute confidence intervals for coordinates in correspondence regression.

Usage

# S3 method for corregp
cint(object, parm = "x", axis, cl = 0.95, nq = TRUE,
  ...)

cint(object, ...)

Arguments

object

The output of a call to corregp (i.e. an object of class "corregp").

parm

The parameter for which to compute the confidence intervals. Can be either "y", "x", or any vector of term names in X, level names in X or level names in Y. Defaults to "x".

axis

The axis for which to compute the confidence intervals.

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 intervals. Defaults to TRUE. If FALSE, then the confidence intervals are computed directly with the quantile function.

...

Further arguments passed to or from other methods.

Value

A matrix with Lower and Upper confidence limits for the coordinates of interest.

Details

cint (of a corregp output) makes use of ci.

Typically, cint is not so much used directly as it is called by a ciplot.corregp command.

See Also

ci, ciplot.corregp, agplot.corregp.

Examples

Run this code
# NOT RUN {
data(HairEye)
haireye.crg <- corregp(Eye ~ Hair * Sex, data = HairEye, b = 3000)
cint(haireye.crg, parm = "y", axis = 1)
cint(haireye.crg, parm = c("Hair", "Sex"), axis = 1)
# }

Run the code above in your browser using DataLab