sample.bmm.component.mean | R Documentation |
sample.bmm.component.mean: Sample (scalar) means in a particular dimension from the posterior of a particular component in the Beta mixture model
sample.bmm.component.mean(mu, alpha, nu, beta, num.samples)
mu |
a (scalar) shape parameter for the gamma prior distribution over a particular component's u parameter. |
alpha |
a (scalar) rate (i.e., inverse scale) parameter for the gamma prior distribution over a particular component's u parameter. |
nu |
a (scalar) shape parameter for the gamma prior distribution over a particular component's v parameter. |
beta |
a (scalar) rate (i.e., inverse scale) parameter for the gamma prior distribution over a particular component's v parameter. |
num.samples |
the number of samples to return |
a vector of length num.samples holding means sampled from the posterior distribution of the component and dimension of the Beta mixture model indicated by the input parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.