Skip to content
Prev 347084 / 398500 Next

nonmonotonic glm?

If you're going to use splines, another possibility is mgcv::gam (also
part of standard R installation)

  require(mgcv)
  gam(DV ~ s(IV), data= YourDataFrame, family=binomial)

this has the advantage that the complexity of the spline is
automatically adjusted/selected by the fitting algorithm (although
occasionally you need to use s(IV,k=something_bigger) to adjust the
default *maximum* complexity chosen by the code)
On Sun, Jan 11, 2015 at 5:23 PM, Marc Schwartz <marc_schwartz at me.com> wrote: