bmm.posterior.predictive.density | R Documentation |
Calculate the posterior predictive density at a point x in a single dimension across all components
bmm.posterior.predictive.density(x, mu, alpha, nu, beta, pi, num.samples = 1000)
x |
the scalar at which to evaluate the posterior predictive density |
mu |
an N.c vector holding the shape parameter for each of the N.c components, which governs the gamma prior distribution over that component's u parameter. |
alpha |
an N.c vector holding the rate (i.e., inverse scale) parameter for each of the N.c components, which governs the gamma prior distribution over that component's u parameter. |
nu |
an N.c vector holding the shape parameter for each of the N.c components, which governs the gamma prior distribution over that component's v parameter. |
beta |
an N.c vector holding the rate (i.e., inverse scale) parameter for each of the N.c components, which governs the gamma prior distribution over that component's v parameter. |
pi |
an N.c vector holding the mixing coefficients giving the weight of each of the N.c components |
num.samples |
the number of samples to use in performing the numerical evaluation of the predictive density |
the posterior preditive density at x summed across all components
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.