
Last chance! 50% off unlimited learning
Sale ends in
function to sample from a specified probability density function
switch_sample(n, pdf, cur.par, RE)
number of samples desired
probability density function (pois1, poisson, normal, unif.disc, unif.cont)
a vector giving parameters for the specified distribution; only the first is used for single parameter distributions
random effects, if present
a vector of length n samples from the desired distribution