predict.sg.SL: Predict method for sg.SL object

View source: R/SL.R

predict.sg.SLR Documentation

Predict method for sg.SL object

Description

Obtains predictions on a new data set from an sg.SL fit.

Usage

predict.sg.SL(object, newdata = NULL)

Arguments

object

Fitted object from sg.SL.

newdata

New W values for prediction.

Details

If newdata is omitted, then predicted values from object are returned.

Value

A matrix of conditional average treatment effects (estimated by SuperLearner) with rows corresponding to the different covariate values in the rows of newdata and columns corresponding to the different treatments.


alexluedtke12/sg documentation built on May 24, 2023, 6:36 a.m.