Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying intercept models is not documented & a PITA #35

Open
fabian-s opened this issue Apr 12, 2016 · 0 comments
Open

Specifying intercept models is not documented & a PITA #35

fabian-s opened this issue Apr 12, 2016 · 0 comments

Comments

@fabian-s
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant