Learn R Programming

corregp (version 0.1.2)

cell.corregp: Confidence Ellipses for Correspondence Regression

Description

Method to compute confidence ellipses for coordinates in correspondence regression.

Usage

## S3 method for class 'corregp':
cell(object, parm = "x", axes = 1:2, cl = 0.95,
  np = 100, ...)

cell(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 ellipses. 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".
axes
The axes for which to compute the confidence ellipses: a vector of two values. Defaults to the first two axes.
cl
The confidence level for the confidence ellipses. Defaults to 0.95.
np
The number of points to represent the confidence ellipses. Defaults to 100.
...
Further arguments passed to or from other methods.

Value

  • A list containing np points for each confidence ellipse of interest.

Details

cell (of a corregp output) makes use of ellipse from the package ellipse. Typically, cell is not so much used directly as it is called by a plot.corregp command.

See Also

plot.corregp.

Examples

Run this code
data(HairEye)
haireye.crg <- corregp(Eye ~ Hair * Sex, data = HairEye, b = 3000)
cell(haireye.crg, parm = "y")
cell(haireye.crg, parm = c("Hair", "Sex"))

Run the code above in your browser using DataLab