pk | R Documentation |
Probability mass function for truncated poisson
pk(k, kstar, lambda)
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) |
'pk' returns a numerical value representing the marginal probability for a given k
This function is used within the Gibbs sampler, it is not expected to be used alone.
[gibbs_alg()]
# Hypothetical values
pk(k = 2, kstar = 3, lambda = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.