sampledata.OnlineSuperLearner: sampledata.OnlineSuperLearner

Description Usage Arguments Value

View source: R/OnlineSuperLearner.S3.R

Description

S3 prediction function for the online superlearner package. Can be used to perform a sampling procedure on the fitted OSL method.

Usage

1
2
3
## S3 method for class 'OnlineSuperLearner'
sampledata(object, newdata, Y = NULL,
  nobs = 1, summarize = TRUE, ...)

Arguments

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 Data.Base, which _should_ already include all necessary variables.

Y

the dependent variables for which we want to predict the outcome. The parameter is allowed to take several forms:

- List of RelevantVariable objects to predict - Single RelevantVariable object to predict - List of strings with the names of the outputs (list('X','Y')) - Single string with the name of the output ('Y')

nobs

the number of observations to sample

...

other parameters directly passed to the predict function

Value

list a list of estimator entries, each of which has a data.table of corresponding sampled values.


frbl/OnlineSuperLearner documentation built on Feb. 9, 2020, 9:28 p.m.