totalchi | R Documentation |
Total scaled Chi-square is the same as the sum of all eigenvalues
in Correspondence Analysis. It is a measure of heterogeneity of a
set of data. The function finds this measure for all divisions and
terminal groups in twinspan
totalchi(x)
twintotalchi(x, what = c("quadrat", "species"))
x |
A matrix of non-negative data for |
what |
Analyse |
Function first reconstructs the data as it was internally used in
twinspan
using functions twin2stack
and
twin2specstack
. The scaled Chi-square is calculated
with support function totalchi
that can be called
independently for any matrix with non-negative data. The scaling in
Chi-square means that data are standardized to unit sum before
calculating the actual Chi-square. This is often called the sum of
all eigenvalues in Correspondence Analysis, but no eigenvalues are
evaluated in these functions, only their potential sum.
The basic functions are twin2stack
and
twin2specstack
that construct the data matrices.
data(ahti)
tw <- twinspan(ahti)
twintotalchi(tw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.