# True Estimation of ATE

## Introduction

This vignette demonstrates the usage of the `True_Estimation` function in the `ATE.ERROR` package. The `True_Estimation` function provides a method for estimating the Average Treatment Effect (ATE) using the generated values for X and Y.

## 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 <- Simulated_data$Y
    A <- Simulated_data$T
    Z <- Simulated_data$Z
    X <- Simulated_data$X

## True Estimation of ATE

Now we use the `True_Estimation` function.

    True_ATE <- True_Estimation(Y, A, Z, X)
    print(True_ATE)
    #> [1] 0.161842

The `True_Estimation` function calculates the ATE by considering the true values of X and Y and adjusting for the misclassification probabilities.