sampledata.OnlineSuperLearner.Rd
S3 prediction function for the online superlearner package. Can be used to perform a sampling procedure on the fitted OSL method.
# S3 method for OnlineSuperLearner sampledata(object, newdata, Y = NULL, nobs = 1, summarize = TRUE, ...)
object | OnlineSuperLearner trained instance of an online superlearner class. |
---|---|
newdata | the new data to perform the prediction with. Note that this
can be a data.frame, after which we will generate blocks based on the
measurements in the data, or a |
Y | the dependent variables for which we want to predict the outcome. The parameter is allowed to take several forms: - List of |
nobs | the number of observations to sample |
... | other parameters directly passed to the predict function |
list
a list of estimator entries, each of which has a
data.table
of corresponding sampled values.