bmm.component.posterior.predictive.density: bmm.component.posterior.predictive.density: Calculate a...

View source: R/bmm.R

bmm.component.posterior.predictive.densityR Documentation

bmm.component.posterior.predictive.density: Calculate a component's posterior predictive density.

Description

Calculate the posterior predictive density at x in a single dimension for a single component.

Usage

  bmm.component.posterior.predictive.density(x, mu, alpha, nu, beta, pi, 
                                             num.samples = 1000)

Arguments

x

the scalar at which to evaluate the posterior predictive density

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.

pi

a (scaler) mixing coefficient giving the weight of the component

num.samples

the number of samples to use in performing the numerical evaluation of the predictive density

Value

the posterior preditive density at x for the specified component


genome/bmm documentation built on Aug. 4, 2022, 8:01 a.m.