Learn R Programming

forestsearch (version 0.1.0)

fit_causal_forest: Fit causal survival forest

Description

Wrapper function to fit GRF causal survival forest with appropriate settings

Usage

fit_causal_forest(X, Y, W, D, tau.rmst, RCT, seedit)

Value

Causal survival forest object

Arguments

X

Matrix. Covariate matrix

Y

Numeric vector. Outcome variable

W

Numeric vector. Treatment indicator

D

Numeric vector. Event indicator

tau.rmst

Numeric. Time horizon for RMST

RCT

Logical. Is this RCT data?

seedit

Integer. Random seed