Generates particles for the new_sample function
gen_particles(
num_particles,
mu,
sig2,
particle,
...,
mix_proportion = c(0.5, 0.5, 0),
prop_mu = NULL,
prop_sig2 = NULL,
epsilon = 1
)The new proposals
The total number of particles to generate using a combination of the three methods.
A vector of means for the multivariate normal
A covariate matrix for the multivariate normal
A particle (re proposals for latent variables)
A vector of floats between 0 and 1 and summing to 1 which give the proportion of particles to generate from the population level parameters, the individual random effects and the conditional parameters respectively
Reduce the variance for the individual level samples by this factor
Generate particles for a particular subject from a mix of population level (hierarchical) distribution, from the particles (containing individual level distribution) and/or from the conditional on accepted individual level particles, a more efficient proposal method.
This function is used in burnin, adaptation and sampling using various combinations of the arguments.