Calculate the log-posterior for a 1-d multi-class population

logpost_multiclass_(N, n, Y, y, lprior)

Arguments

N

the population size

n

the sample size

Y

a vector indicating the amount of each class in the population.

y

a vector indicating the amount of each class in the sample.

lprior

function uses to calculate the log-prior