4 ms·
A very odd method where logistic regression would have sufficed. I would have done something like library(mgcv) gam(y ~ s(x), data, family = binomial)
by clircle 5y ago
A very odd method where logistic regression would have sufficed. I would have done something like
library(mgcv)
gam(y ~ s(x), data, family = binomial)
to do a wiggly logistic regression, and avoid the binning issue entirely.
You can do it Bayesianly if you like, but I don't see why we should discretize the data into buckets.
And what am I supposed to take away from the normalized histogram?
- deleted 5y ago[deleted]
- dionhaefner 5y agoYes that would probably work! GAMs are a bit of a black box to me so I find it hard to reason about them. I think my method is a bit simpler and it’s more straightforward to get uncertainties, but certainly less elegant than a smooth solution.