powerDivStat: Power divergence statistic of Cressie & Read

View source: R/TreeQuartetHypTest.R

powerDivStatR Documentation

Power divergence statistic of Cressie & Read

Description

Computes any of the family of power-divergence statistics for multinomial data of \insertCiteCR84;textualMSCquartets, to compare observed and expected counts. Includes Likelihood Ratio and Chi-squared statistics as special cases.

Usage

powerDivStat(obs, expd, lambda)

Arguments

obs

observation vector

expd

expected vector

lambda

statistic parameter (e.g., 0=Likelihood Ratio, 1=Chi-squared)

Value

value of statistic

References

\insertRef

CR84MSCquartets

Examples

obs=c(10,20,30)
expd=c(20,20,20)
powerDivStat(obs,expd,0)


MSCquartets documentation built on Oct. 31, 2024, 1:08 a.m.