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

warning, predict.mboost() with offset #20

Closed
sbrockhaus opened this issue Nov 17, 2015 · 1 comment
Closed

warning, predict.mboost() with offset #20

sbrockhaus opened this issue Nov 17, 2015 · 1 comment

Comments

@sbrockhaus
Copy link
Member

This is just a comment about a warning.
The warning occurs when predicting a model with newdata, where the model is specified with an offset AND length(offset) != 1, then one gets
warning("Offset not used for prediction when ", sQuote("newdata"), " is specified")
(mboost.R, line 269)

I found the warning rather misleading, as only the combination of user-specified offset of length>1 and predict with newdata is a problem (and not the newdata in general)
warning("User-specified offset in object is longer than 1, thus offset not used for prediction when ", sQuote("newdata"), " is specified")
Best

@hofnerb
Copy link
Member

hofnerb commented Nov 17, 2015

That sounds like a very reasonable change. Thanks

Am 17.11.2015 um 15:39 schrieb sbrockhaus:

This is just a comment about a warning.
The warning occurs when predicting a model with newdata, where the model
is specified with an offset AND |length(offset) != 1|, then one gets
|warning("Offset not used for prediction when ", sQuote("newdata"), " is
specified")|
(mboost.R, line 269)

I found the warning rather misleading, as only the combination of
user-specified offset of length>1 and predict with newdata is a problem
(and not the newdata in general)
|warning("User-specified offset in object is longer than 1, thus offset
not used for prediction when ", sQuote("newdata"), " is specified")|
Best


Reply to this email directly or view it on GitHub
#20.


Dr. rer. nat. Benjamin Hofner

Institut für Medizininformatik, Biometrie und Epidemiologie
Friedrich-Alexander-Universität Erlangen-Nürnberg
Waldstr. 6 - 91054 Erlangen - Germany

Tel: +49-9131-85-22707
Fax: +49-9131-85-25740

Büro:
Raum 3.036
Universitätsstraße 22
(Eingang linke Seite des Gebäudes; Wegweiser IMBE)

benjamin.hofner@fau.de

http://www.imbe.med.uni-erlangen.de/cms/benjamin_hofner.html
http://www.benjaminhofner.de


@hofnerb hofnerb closed this as completed in e627966 Dec 7, 2015
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

2 participants