stan-dev / rstanarm

rstanarm R package for Bayesian applied regression modeling
https://mc-stan.org/rstanarm
GNU General Public License v3.0
388 stars 133 forks source link

stan_clogit: allow y to be a factor #520

Closed jgabry closed 3 years ago

jgabry commented 3 years ago

closes #519

Previously the model would fit but would error in some post-processing step where it didn't like factors. This PR just converts a factor to a binary variable before fitting the model.