function to calculate the joint pdf for a sample of values from one of a number of pdfs
switch_pdf(x, pdf, cur.par, RE)
values to be evaluated
probability density function (pois1, poisson, pois1_ln, poisson_ln, normal, multinom)
a vector giving parameters for the specified distribution; only the first is used for single parameter distributions
random effects, if present
total log likelihood of points