View source: R/TreeQuartetHypTest.R
powerDivStat | R Documentation |
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.
powerDivStat(obs, expd, lambda)
obs |
observation vector |
expd |
expected vector |
lambda |
statistic parameter (e.g., 0=Likelihood Ratio, 1=Chi-squared) |
value of statistic
CR84MSCquartets
obs=c(10,20,30)
expd=c(20,20,20)
powerDivStat(obs,expd,0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.