Learn R Programming

HMP (version 2.0.1)

Xmcupo.effectsize: Effect Size for Xmcupo Statistic

Description

This function computes the Cramer's Phi and Modified Cramer's Phi Criterion for the test statistic Xmcupo.sevsample.

Usage

Xmcupo.effectsize(group.data)

Arguments

group.data

A list where each element is a matrix of taxonomic counts(columns) for each sample(rows).

Value

A vector containing the Chi-Squared statistic value, the Cramer's Phi Criterion, and the modified Cramer's Phi Criterion.

Details

Note: The matrices in group.data must contain the same taxa, in the same order.

Examples

Run this code
# NOT RUN {
	data(saliva)
	data(throat)

	### Combine the data sets into a single list
	group.data <- list(saliva, throat)
	
	effect <- Xmcupo.effectsize(group.data)
	effect
# }

Run the code above in your browser using DataLab