predict_causal_forest: Estimates conditional average treatment effects based on a...

View source: R/predict_causal_forest.R

predict_causal_forestR Documentation

Estimates conditional average treatment effects based on a trained causal forest and test data

Description

Estimates conditional average treatment effects based on a trained causal forest and test data

Usage

predict_causal_forest(data, cf, predict_oob = TRUE)

Arguments

data

a data frame with observations to predict and no NA

cf

output of the rcf causal_forest function

predict_oob

set to TRUE if you want to predict cates on the observations you used to fit the causal forest (uses out of bag observations); set to FALSE if you wish to use a test data set. Default TRUE.

Value

a data.frame with a cate estimate for each observation.


till-tietz/rcf documentation built on May 7, 2023, 10:23 p.m.