C_pears: Pearson tetrachoric correaltions for binary data

Description Usage Arguments Value References

View source: R/measures_for_incidence_matrices.R

Description

This is the index A_30 from Hubalek (1982), who considered it to be one of the recommended indices. Note: Before the calculation, species (rows) with zero occurrences are removed from m.

Usage

1
C_pears(m, clean = TRUE)

Arguments

m

Community data matrix with species as rows and sites as columns. Can contain either incidences (1/0) or abundances (natural numbers).

clean

Logical. Do you want to remove zero-sum rows or columns? When the index needs the "d" fraction (sites where no species occurs), only zero-sum rows are removed.

Value

A dist or data.frame objects with the pairwise association values.

References

Hubalek Z. (1982) Coefficients of association and similarity, based on binary (presence-absence) data: an evaluation. Biol. Rev. 57: 669-689.


petrkeil/spasm documentation built on Jan. 15, 2021, 6:08 p.m.