View source: R/Faddyprob.general.R
Faddyprob.general | R Documentation |
Given a vector of parameters and a scalar of the maximum count the function calculates the vector of lambdas for a Faddy distribution and returns a vector of probabilities.
Faddyprob.general(parameter, nmax)
parameter |
A vector of the parameters of the Faddy distribution. |
nmax |
The value of the maximum count. |
Vector of probabilities
David M. Smith <dmccsmith@verizon.net>
Faddy M, Smith D. (2011). Analysis of count data with covariate dependence in both mean and variance. Journal of Applied Statistics, 38, 2683-2694. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1002/bimj.201100214")}.
all.counts=c(rep(0,5),352,479,530,291,101,17)
nmax <- length(all.counts) - 1
parameter <- c(exp(53.047752),exp(3.801599),-13.205655)
names(parameter) <- c("a","b","c")
probability <- Faddyprob.general(parameter,nmax)
print(probability)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.