predict.SL.gilleskie: Prediction method for 'SL.gilleskie'

Description Usage Arguments Examples

View source: R/SL.gilleskie.R

Description

Prediction method for SL.gilleskie

Usage

1
2
## S3 method for class 'SL.gilleskie'
predict(object, newdata, ...)

Arguments

object

An object of class SL.gilleskie

newdata

A data.frame for which predictions are desired

...

Other arguments (unused)

Examples

1
2
3
4
5
6
7
# load cost data
data(cost_data)
# fit gilleskie model
fit_gilleskie <- SL.gilleskie(Y = cost_data$totalcost, X = cost_data[, c("female", "race")],
                              newX = cost_data[, c("female", "race")])
# get back predictions
pred_gilleskie <- predict(fit_gilleskie$fit, newdata = cost_data[,c("female", "race")])

wuziyueemory/twostageSL documentation built on Oct. 19, 2020, 3:45 p.m.