Skip to contents

Prediction of a bag of models to new data

Usage

bag_predict(
  x,
  newdata,
  type = c("linear", "exponential", "exp", "logit", "cloglog")[1],
  wMean = T,
  wq_probs = NULL,
  include = "all"
)

Arguments

x

[bag,list]
A bag of models, resulting from a call to bag_models().

newdata


New data set to be used for prediction.

inclue

vector with 1s and 0s about which variables should be included?