Increamental Mixture Importance Sampling
Description
IMIS algorithm draws samples from the posterior
distribution. The user has to define the following R functions
in advance: prior(x) calculates prior density of x,
likelihood(x) calculates the likelihood of x, and
sample.prior(n) draws n samples from the prior distribution.