corregp(formula, data, part = NULL, b = 0, xep = TRUE, std = FALSE,
rel = TRUE, phi = FALSE, chr = ".")formula specification of which factors to cross with each other. The left-hand (y) side must be a single factor.
The right-hand side (x) can involve all the usual specificaformula.y into groups.
This argument is relevant for analyses in which one wants to remove between-item variation.0 (i.e. the default), then the analysis is exploratory.x) as components in a list.
If FALSE, then all x output is collected in a matrix.FALSE.sqrt of their totals, so that one obtains coordinates for
the relative frequencies (as is customary in correspondence analysis). Defaults to TRUE.eigenyxxep is TRUE, then this is a list with a component for each term name.freqconfauxY) in terms of other (possibly interacting) factors (X). These
are specified in the argument formula, which can be constructed in all the usual ways of specifying a model formula: e.g. Y ~ X1 * X2 as a shorthand for
Y ~ X1 + X2 + X1 : X2, or Y ~ X1 * X2 - X1 : X2, Y ~ (X1 + X2 + X3) ^ 2, etc. Correspondence regression then crosstabulates the Y factor with all the
combinations in X, thus producing a typical contingency table, on which a simple correspondence analysis is performed (see Greenacre 2007: 121-128 for the outline of
this approach). The more general effects in X are obtained by aggregating the combinations.
Correspondence regression also allows for inferential validation of the effects, which is done by means of the bootstrap. Setting the argument b to a number $> 0$, b
replicates of the contingency table are generated with multinomial sampling. From these, b new values are derived for the coordinates in both Y and
X as well as for the eigenvalues (also called the "principal inertias"). On the basis of the replicate values, confidence intervals, ellipses or ellipsoids can
be computed. CAUTION: bootstrapping is computationally quite intensive, so it can take a while to reach results, especially with a large b.
The argument parm can be used when the levels of Y are grouped/partitioned/nested into clusters and one wants to exclude the heterogeneity between the clusters. Thus,
parm is equivalent to a random factor, although corregp currently allows for only one such factor. The use of parm can be relevant for so-called
lectometric analyses in linguistics.print.corregp, summary.corregp, screeplot.corregp, plot.corregp.data(HairEye)
haireye.crg <- corregp(Eye ~ Hair * Sex, data = HairEye, b = 3000)
haireye.crgRun the code above in your browser using DataLab