A function for repeated correspondence regressions with bootstrapping in order to handle large data sets. This is essentially a wrapper
replicate(n = r, expr = corregp(...), simplify = FALSE)
, so it may dissappear in the future.
corregplicate(formula, data, part = NULL, b = 100, r = 10, xep = TRUE,
std = FALSE, rel = TRUE, phi = FALSE, chr = ".",
b_scheme = "multinomial")
A 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 specifications of interactions and/or nested analyses.
The data frame containing the variables specified in the formula
.
Character vector specifying the names of conditional factors (e.g. a factor partioning the levels of the left-hand side y
into groups).
This argument is relevant for analyses in which one wants to remove between-item variation.
Number of the bootstrap replications (simulations).
Number of repeated calls to corregp
.
Logical specifying whether to output the separate terms in the right-hand side (x
) as components in a list.
If FALSE
, then all x
output is collected in a matrix.
Logical specifying whether to output the standardized coordinates. Defaults to FALSE
.
Logical specifying whether to divide the coordinates by the sqrt
of their totals, so that one obtains coordinates for
the relative frequencies (as is customary in correspondence analysis). Defaults to TRUE
.
Logical specifying whether to compute the output on the scale of the Chi-squared value of the contingency table or of the Phi-squared value
(which is Chi-squared divided by N). Reminiscent of corresp
in package MASS, defaults to FALSE
.
Character specifying the separator string for constructing the interaction terms.
Character specifying the sampling scheme for bootstrapping. Must match either "multinomial"
(the default) or "product-multinomial"
.
An object of class "corregp" in which the bootstrap replications of all the repeated calls to corregp
are put together.