View source: R/newsafe2x2Test.R
| logLikelihoodFNCH | R Documentation |
Given its total ya + yb, ya is Fisher's noncentral hypergeometric
with odds exp(logOdds) on group A; logOdds = 0 is the hypergeometric
null. Evaluated on the log scale, binomial coefficients plus logOdds
times the feasible count normalised by log-sum-exp, so extreme logOdds
give finite values where the plain density underflows to 0.
logLikelihoodFNCH(ya, yb, na, nb, logOdds)
ya |
positive observations/ events per data block in group A: a
numeric with integer values between (and including) 0 and |
yb |
positive observations/ events per data block in group B: a
numeric with integer values between (and including) 0 and |
na |
number of observations in group A per data block, one value or one per block. |
nb |
number of observations in group B per data block, one value or one per block. |
logOdds |
numeric, one log odds ratio |
A numeric vector, one log density per block.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.