anova.corregp: Building an ANOVA Table for Correspondence Regression

Description Usage Arguments Details Value See Also Examples

View source: R/corregp.r

Description

Method to construct an ANOVA table for correspondence regression, i.e. a table with the Chi-squared deviation for each term in the formula of the corregp call (or of each individual level in X in case xep = FALSE).

Usage

1
2
## S3 method for class 'corregp'
anova(object, nf = NULL, cl = 0.95, nq = TRUE, ...)

Arguments

object

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

nf

The number of dimensions to be retained in the reduced space. Defaults to all dimensions (no reduction).

cl

The confidence level for the confidence intervals. 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.

...

Further arguments passed to or from other methods.

Details

If object was made with bootstrap replications, then anova.corregp will automatically compute confidence intervals for the Chi-squared deviations by means of the ci function.

Value

A matrix with the Chi-squared deviations for all the terms in the formula of object, based on the selected number of dimensions. If object was made with the argument xep = FALSE, then the output contains the Chi-squared deviation for every individual level in X.

See Also

print.anova.corregp, ci, summary.corregp.

Examples

1
2
3
data(HairEye)
haireye.crg <- corregp(Eye ~ Hair * Sex, data = HairEye, b = 3000)
anova(haireye.crg, nf = 2)

corregp documentation built on March 18, 2018, 1:40 p.m.