Description Usage Arguments Value Author(s) See Also Examples
Calculate the likelihood using dnbinom() in stat package
1 | joint.likelihood(theta, ys, m0, ma, null = FALSE,const=1)
|
theta |
The dispersion parameter. |
ys |
The count data |
m0 |
The means under the null. |
ma |
The means under alternative. |
null |
Whether to calculate under null model or full model. |
const |
A multiplying constant to make the product of likelihoods non-zero. |
A numeric vector indicating product of likelihood of each theta.
Yilun Zhang
1 2 3 4 5 6 7 8 9 | theta=c(0.8, 1.2)
ys=rnbinom(10, mu=5, size=1)
cond = rep(0:1, each=5)
mu0 = rep(5, 10)
mua = rep(c(4, 6) , each = 5)
joint.likelihood(theta, ys, cond,mu0, mua, null = TRUE)
joint.likelihood(theta, ys, cond,mu0, mua, null = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.