Faddyprob.general: Calculation of vector of probabilities for a Faddy...

Description Usage Arguments Value Author(s) References Examples

View source: R/Faddyprob.general.R

Description

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.

Usage

1
Faddyprob.general(parameter, nmax)

Arguments

parameter

A vector of the parameters of the Faddy distribution.

nmax

The value of the maximum count.

Value

Vector of probabilities

Author(s)

David M. Smith <smithdm1@us.ibm.com>

References

Faddy M, Smith D. (2011). Analysis of count data with covariate dependence in both mean and variance. Journal of Applied Statistics, 38, 2683-2694. doi: 10.1002/bimj.201100214.

Examples

1
2
3
4
5
6
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)

CountsEPPM documentation built on May 1, 2019, 10:25 p.m.