Learn R Programming

hettx (version 0.1.3)

R2: Estimate treatment variation R2

Description

Bounds the R2 measure (how much of treatment variation is explained by given covariates) using either the OLS output for the ITT from est.beta, or the LATE estimation from est.beta.

Usage

R2(est.beta, rho.step)

Value

RI.R2.result object.

Arguments

est.beta

The output from `est.beta()`. Either an estimate of overall systematic effect variation, or systematic effect variation for compliers.

rho.step

Grid size for sensitivity analysis on values of rho. Default is 0.05

See Also

print.RI.R2.result

Examples

Run this code
df <- make.randomized.dat( 1000, gamma.vec=c(1,1,1,2), beta.vec=c(-1,-1,1,0) )
es <- estimate_systematic( Yobs ~ Z,  interaction.formula = ~ A + B, data = df )
r2_out <- R2(es)

Run the code above in your browser using DataLab