Description Usage Arguments Value Author(s) See Also Examples
Convienience wrapper for predict.GAMBoost
, for obtaining predictions at specified boosting steps from a GAMBoost object fitted by GLMBoost
.
1 2 |
object |
fitted GAMBoost object from a |
newdata |
|
... |
arguments that should be passed to |
Value returned by predict.GAMBoost
(see documentation there).
Harald Binder binderh@uni-mainz.de
GLMBoost
, GAMBoost
, predict.GAMBoost
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Generate some data
x <- matrix(runif(100*8,min=-1,max=1),100,8)
eta <- -0.5 + 2*x[,1] + 4*x[,3]
y <- rbinom(100,1,binomial()$linkinv(eta))
## Fit the model with only linear components
gb1 <- GLMBoost(x,y,penalty=100,stepno=100,trace=TRUE,family=binomial())
## Extract predictions
# at final boosting step
predict(gb1,type="response")
# at 'optimal' boosting step (with respect to AIC)
predict(gb1,at.step=which.min(gb1$AIC),type="response")
# matrix with predictions at predictor level for all boosting steps
predict(gb1,at.step=1:100,type="link")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.