mboost
mboost copied to clipboard
Specifying intercept models is not documented & a PITA
(See boost-R/gamboostLSS#13)
One should try to interpret 1 generally as intercept. Thus instead of
cars$int <- 1
gamboost(dist ~ bols(int, intercept = FALSE) + bols(..., intercept = FALSE), data = cars)
one could then write
gamboost(dist ~ bols(1, intercept = FALSE) + bols(..., intercept = FALSE), data = cars)
## or even better
gamboost(dist ~ 1 + bols(..., intercept = FALSE), data = cars)
~1 should then always be defined as ~bols(rep(1, nrow(data), intercept = FALSE).