Description Usage Arguments Examples
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)).
1 2 |
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 |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.