mboost icon indicating copy to clipboard operation
mboost copied to clipboard

Specifying intercept models is not documented & a PITA

Open fabian-s opened this issue 9 years ago • 0 comments

(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).

fabian-s avatar Apr 12 '16 09:04 fabian-s