fitCoinertia.Rd
Performs a co-inertia of the triplets \((Q_1,K_1,R_0)\) and \((Q_2,K_2,R_0)\).
fitCoinertia(X, Dp, Y, Dq, Dn, n.axes) <!-- %\method{print}{coinertia}(x, axes = c(1:min(6, x$n.axes)), --> <!-- % digits = max(3, getOption("digits") - 3), \ldots) --> # S3 method for fitCoinertia summary(object, ...) <!-- %\method{print}{summary.coinertia}(x, digits = max(3, --> <!-- % getOption("digits") - 3), \ldots) -->
X | \(Q_1\), matrix of expected abundances under row-column
independence in the original |
---|---|
Dp | \(K_1\), species (column) weights for |
Y | \(Q_2\), matrix of expected abundances under row-column
independence in the original |
Dq | \(K_2\), species (column) weights for |
Dn | site weights \(R_0\). |
n.axes | number of axes to calculate the co-inertia analysis for. |
object | an object of class |
axes | the number of axes to display when printing. |
... | arguments passed to other functions. Currently ignored. |
A list with the following components:
column weights of X
.
column weights of Y
.
rowscores of X
.
rowscores of Y
.
the Eigenvalues (squares of the singular values).
number of axes requested.
the matched function call.
Ter Braak, C.J.F and Schaffers, A.P. (2004) Co-Correspondence Analysis: a new ordination method to relate two community compositions. Ecology 85(3), 834--846
Doledec, S and Chessel, D. (1994) Co-inertia analysis: a method for studying species-environment relationships. Freshwater Biology 31, 277--294
Original Matlab code by C.J.F. ter Braak and A.P. Schaffers. R port by Gavin L. Simpson.
This function is not yet meant to be called directly by the
user. If you wish to use it directly, see the function definition for
symcoca
which demonstrates how to prepare the
relevant input matrices.
Note that in this function, X
corresponds to the input
matrix y
and Y
corresponds to the
input matrix x
in symcoca
.
Confusing! This will be changed in a future release but for now the
arguments follow those of the original Matlab code - perhaps a little
too closely!
symcoca
for the function that calls
fitCoinertia
and coinertiaI
for co-inertia analysis
using identity matrices for \(K_1\), \(K_2\), and \(R_0\)