by clircle · 5y ago · 0 comments
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?