Description Usage Arguments Value Author(s) See Also Examples
Calculate the likelihood using dnbinom in stat package
1 | likelihoodpercond(theta, mu, ys,const=1)
|
theta |
The dispersion parameter. |
mu |
The mean. |
ys |
The count data. |
const |
A multiplying constant to make the product of likelihoods non-zero. |
A numerical vector indicating likelihood.
Yilun Zhang
1 2 3 4 5 | theta=1
mu=5
ys=rnbinom(10, mu=5, size=1)
likelihoodpercond(theta, mu, ys)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.