Compounding: an R package for computing continuous distributions obtained by compounding a continuous and a discrete distribution
In this manuscript we introduce R package Compounding for dealing with continuous distributions obtained by compounding continuous distributions with discrete distributions. We demonstrate its use by computing values of cumulative distribution function, probability density function, quantile function and hazard rate function, generating random samples from a population with compounding distribution, and computing mean, variance, skewness and kurtosis of a random variable with a compounding distribution. We consider 24 discrete distributions which can be compounded with any continuous distribution implemented in R.
compounding compounding by a discrete distribution zero truncated distributions