Z: Calculate the Normalizing Constant for COM-Poisson...

View source: R/Z.R

ZR Documentation

Calculate the Normalizing Constant for COM-Poisson distribution

Description

A function to approximate the normalizing constant for COM-Poisson distributions via truncation. The standard COM-Poisson parametrization is being used here. Notice that the sum is hard coded to truncate at 100 so the approximation will be quite bad if the COM-Poisson has a large rate or mean.

Usage

Z(lambda, nu, log.z = FALSE, summax)

Arguments

lambda

rate parameter, straightly positive

nu

dispersion parameter, straightly positive

log.z

logical; if TRUE, normalising constant Z are returned as log(Z).

summax

maximum number of terms to be considered in the truncated sum


thomas-fung/mpcmp documentation built on June 13, 2022, 6:20 p.m.