Learn R Programming

ashr (version 0.9)

comppostprob_mixlik2: comppostprob_mixlik2

Description

compute the posterior prob that each observation came from each component of the mixture m and the likelihood mixture, output a (k*l) by n vector of probabilities computed by weighting the component densities by pi and then normalizing, when likelihood is an l-components normal mixture or student t mixture with mixture proportion pilik.

Usage

comppostprob_mixlik2(m, x, s, v, pilik)

Arguments

m
mixture distribution
x
an n vector
s
normal mixture of sd(s), n-by-l matrix
v
degree of freedom of error distribution
pilik
mixture proportion , n-by-l matrix