normal.normal.mix: Computes the posterior for normal sampling and a mixture of normals prior
Description
Computes the parameters and mixing probabilities for a normal sampling problem, variance known,
where the prior is a discrete mixture of normal densities.
Usage
normal.normal.mix(probs,normalpar,data)
Arguments
probs
vector of probabilities of the normal components of the prior
normalpar
matrix where each row contains the mean and variance parameters for a normal component of the prior
data
vector of observation and sampling variance
Value
probs
vector of probabilities of the normal components of the posterior
normalpar
matrix where each row contains the mean and variance parameters for a normal component of the posterior