nbLLZ | R Documentation |
Exact test of the negative binomial
nbLLZ(x, size, mu)
x |
a numeric vector |
size |
the size parameter |
mu |
the mean parameter |
Compares the observed log likelihood of the nagative binomial distribution
given the data to the sampling distribution of log likelihoods given the negative
binomial distribution is true. This test statistic is Chi-square distributed with
d.f. = 1, meaning value larger than qchisq(0.95, 1)
rejects the "null"
hypothesis that the data come from a negative binomial.
A matrix
with columns giving the species IDs, the two parameters of the
negative binomial distribution, the log likelihood of the negative binomial
distribution, and the log likelihood of the Poisson distribution. Each row is one
species and the species ID refers to the column index of that species in the site x
species matrix x
.
Andy Rominger <ajrominger@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.