tmle: Targeted maximum likelihood (TMLE)

Description Usage Arguments Examples

View source: R/tmle.R

Description

This function implements the TMLE method. Please use our main function causal_multi_treat.R.

Usage

1
tmle(y, trt, x, ...)

Arguments

y

numeric vector for the binary outcome

trt

numeric vector for the treatment indicator

x

data frame containing the treatment indicator and covariates

...

Other arguments

Examples

1
2
3
4
5
6
7
8
9
library(CIMTx)
set.seed(3242019)
idata = data_gen(n = 120, ratio =1,scenario = 1)
trt_ind <- as.numeric(idata$trtdat$trt_ind)
all_vars <- idata$trtdat[, -1] #exclude treatment indicator
y <- idata$Yobs
x = idata$trtdat
causal_multi_treat(y = y, x = idata$trtdat, trt = trt_ind,SL.library = c("SL.glm"),
method = "IPTW-Logistics", estimand = "ATE")

CIMTx documentation built on July 8, 2020, 7:09 p.m.

Related to tmle in CIMTx...