Using Stan for logistic regressions with detection error
Example of how to simulate binary observations of an imperfectly observed data generating process (i.e. binary measurements that are made with error) and use Stan to estimate parameters of the model in a Bayesian framework.