
Computes any of the family of power-divergence statistics for multinomial data of CR84;textualMSCquartets, to compare observed and expected counts. Includes Likelihood Ratio and Chi-squared statistics as special cases.
powerDivStat(obs, expd, lambda)
value of statistic
observation vector
expected vector
statistic parameter (e.g., 0=Likelihood Ratio, 1=Chi-squared)
CR84MSCquartets
obs=c(10,20,30)
expd=c(20,20,20)
powerDivStat(obs,expd,0)
Run the code above in your browser using DataLab