Calculate the log-likelihood for a 1-d binary population

loglik_binary_(N, n, Y, y)

Arguments

N

the population size

n

the sample size

Y

the number of successes in the population

y

the number of successes in the sample