I posted the dynamic programming algorithm for the Poisson binomial here:
There might be some mileage for dropping in that theta
has a log odds structure. We have a log_inv_logit function and log1m_inv_logit built in.
If people really use this, we could code it as a built-in for Stan.
1 Like