omni.ate(Y, Z, perms, invert = FALSE, quantiles = c(0.025, 0.975))
genperms
or genperms.custom
FALSE
.
invert=TRUE
) confidence interval under an inverted exact test with the difference-in-means as a test statisticomni.ate()
is a convenience function that implements a number of functions otherwise available in ri
. Greater flexibility through use of the individual functions involved.
Rosenbaum, Paul R. 2002. Observational Studies. 2nd ed. New York: Springer.
Samii, Cyrus and Peter M. Aronow. 2012. On Equivalencies Between Design-Based and Regression-Based Variance Estimators for Randomized Experiments. Statistics and Probability Letters. 82(2): 365-370. http://dx.doi.org/10.1016/j.spl.2011.10.024
ri
y <- c(8,6,2,0,3,1,1,1,2,2,0,1,0,2,2)
Z <- c(1,1,0,0,1,1,0,0,1,1,1,1,0,0,1)
perms <- genperms(Z) # all possible permutations of assignment
omni.ate(y,Z,perms,FALSE)
# omni.ate(y,Z,perms,TRUE) # may take some time to run
Run the code above in your browser using DataLab