View source: R/estimate_systematic.R
R2 | R Documentation |
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.
R2(est.beta, rho.step)
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 |
RI.R2.result object.
print.RI.R2.result
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.