crosstabanalysis | R Documentation |
This function makes a cross-tabulation of two variables after transforming the first variable to presence-absence and then returns results of chisq.test
.
crosstabanalysis(x,variable,factor)
x |
Data set that contains the variables "variable" and "factor". |
variable |
Variable to be transformed in presence-absence in the resulting cross-tabulation. |
factor |
Variable to be used for the cross-tabulation together with the transformed variable. |
The function returns the results of chisq.test
on a crosstabulation of two variables, after transforming the first variable to presence-absence first.
Roeland Kindt
Kindt, R. & Coe, R. (2005) Tree diversity analysis: A manual and software for common statistical methods for ecological and biodiversity studies.
https://www.worldagroforestry.org/output/tree-diversity-analysis
library(vegan)
data(dune.env)
crosstabanalysis(dune.env,"Manure","Management")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.