Hi,
by reading the relevant part of the code, then
status = gsl_sf_lnchoose_e((unsigned int) n, (unsigned int) y, &res);
logll[i] = res.val + y * log(p) + (n - y) * log(1.0 - p);
so the normalizing constant uses the integer part of 'y', which in this
case only will influence the marginal likelihood estimate.
the log-likelihood uses 'whatever values of y is that entered', and
there are no check on 'integer values of y only'.
PS: If you have suggestions for improvement, please let me know
Best
H
--
Håvard Rue
he...@r-inla.org