sample.bmm.component.proportion: sample.bmm.component.proportion: Sample (scalar) proportions...

View source: R/bmm.R

sample.bmm.component.proportionR Documentation

sample.bmm.component.proportion: Sample (scalar) proportions from a bmm component

Description

sample.bmm.component.proportion: Sample (scalar) proportions in a particular dimension from the posterior of a particular component in the Beta mixture model

Usage

  sample.bmm.component.proportion(mu, alpha, nu, beta, num.samples)

Arguments

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

Value

a vector of length num.samples holding proportions sampled from the posterior distribution of the component and dimension of the Beta mixture model indicated by the input parameters.


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