Naive Estimation of ATE

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Introduction

This vignette demonstrates the usage of the Naive_Estimation function in the ATE.ERROR package. The Naive_Estimation function provides a simple method for estimating ATE.

Generating Simulated Data

First, we generate our simulated data using the data(Simulated_data) syntax.

library(ATE.ERROR)
set.seed(1)
data(Simulated_data)
Y_star <- Simulated_data$Y_star
A <- Simulated_data$T
Z <- Simulated_data$Z
X_star <- Simulated_data$X_star

Naive Estimation of ATE

Now we use the Naive_Estimation function.

Naive_ATE_XY <- Naive_Estimation(Y_star, A, Z, X_star)
print(Naive_ATE_XY)

The Naive_Estimation function calculates the ATE by ignoring the difference between {X^∗, Y^∗} and {X, Y}.



Try the ATE.ERROR package in your browser

Any scripts or data that you put into this service are public.

ATE.ERROR documentation built on Sept. 11, 2024, 9:35 p.m.