predict.premixed: Return predicted values based on a mixed-effects prediction...

Description Usage Arguments Examples

Description

predict.premixed returns predicted values based on the estimated fixed effects of a a mixed-effects prediction rule ensemble (random effects are NOT included in the predictions (yet)).

Usage

1
2
## S3 method for class 'premixed'
predict(object, offset = 0, ...)

Arguments

object

an object of class 'premixed'.

offset

Offset value to be used in generating predictions. Note that the predictions are returned for the fixed effects only.

...

further arguments to be passed to predict.pre

Examples

1
2
3
4
5
6
## Employ glmertree for rule induction and iterate between lasso for
## estimating fixed effects and ridge for estimating random effects:
set.seed(42)
airq <- airquality[complete.cases(airquality),]
airq.ens1 <- premixed(Ozone ~ 1 | Month | Solar.R + Wind + Temp + Day, data = airq, ntrees = 10)
predict(airq.ens1, newdata = airq)

marjoleinF/premixed documentation built on May 27, 2019, 4:50 a.m.