Description Usage Arguments Details References
A function to approximate the normalizing constant for COM-Poisson distributions via truncation. The standard COM-Poisson parametrization is being used here.
1 | logZ(log_lambda, nu, summax = 100)
|
log_lambda |
rate parameter in log scale. |
nu |
dispersion parameter, straightly positive. |
summax |
maximum number of terms to be considered in the truncated sum. |
As of version 0.2.0 of this package, logZ
will supersede Z
for calculating
the normalizing constant. logZ
utilised a method that can calculate
log(exp(logx) + exp(logy))
in a somewhat numerically stable way.
This function was originally purposed in the cmpreg
package of Ribeiro Jr,
Zeviani & Demétrio (2019).
Ribeiro Jr, E. E., Zeviani, W. M., Demétrio, C. G. B. (2019) cmpreg
:
Reparametrized COM-Poisson Regression Models. R package version 0.0.1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.