naive_ate: Estimate naive average treatment effect (ATE).

Description Usage Arguments Details Value Examples

View source: R/ate.R

Description

Estimate naive average treatment effect (ATE).

Usage

1
naive_ate(data, y, w, cf = TRUE)

Arguments

data

a dataframe object containing the variables and values.

y

a character vector specifying the response variable.

w

a character vector specifying the treatment status.

cf

logical; if TRUE then includes confidence interval on ATE.

Details

Computes a simple difference in means between the treatment group and the control group, τ = E[Y_i | W = 1] - E[Y_i | W = 0].

Value

a list of ATE, 95 percent confidence interval upperbound and lowerbound or just ATE, depending on user input of cf

Examples

1
2
data("lalonde")
ate <- naive_ate(data = lalonde, y = "re78", w = "treat")

jackcollison/causality documentation built on Dec. 20, 2021, 8:05 p.m.