pk {BayesCPclust} | R Documentation |
Probability mass function for truncated poisson
Description
Probability mass function for truncated poisson
Usage
pk(k, kstar, lambda)
Arguments
k |
A scalar for the number of changes points in a cluster |
kstar |
A scalar with the number maximum of change points in all clusters |
lambda |
A scalar defining the parameter for the Truncate Poisson distribution that controls the number of change points (or its initial values) |
Value
'pk' returns a numerical value representing the marginal probability for a given k
Note
This function is used within the Gibbs sampler, it is not expected to be used alone.
See Also
[gibbs_alg()]
Examples
# Hypothetical values
pk(k = 2, kstar = 3, lambda = 2)
[Package BayesCPclust version 0.1.0 Index]