I'm trying to fit a generalized additive logistic regression model, but I'm getting a strange error:
gam_object = gam(event ~ s(time) + ., data = lapse_train, family = "binomial")
Error in terms.formula(gf, specials = c("s", "te", "ti", "t2")) : '.' in formula and no 'data' argument
Why would it be telling me there is no data argument here when there obviously is?