Description Usage Arguments Value Author(s) References Examples
Experimental code to generate endpoints of Rosenbaum (2002)-style confidence intervals through inversion of a constant effects hypothesis. Only conducts inference with the difference in (weighted) means as the test statistic, no covariate adjustment.
| 1 | invert.ci(Y, Z, prob, perms, targetp)
 | 
| Y | numeric vector of length N, outcome variable | 
| Z | binary vector (0 or 1) of length N, treatment indicator | 
| prob | numeric vector within the (0,1) interval of length N, probability of treatment assignment, as outputted by  | 
| perms | N-by-r permutation matrix, as output by  | 
| targetp | target p-value for the endpoint of the confidence interval | 
returns endpoint of the confidence interval with the target p-value associated
Peter M. Aronow <peter.aronow@yale.edu>; Cyrus Samii <cds2083@nyu.edu>
Gerber, Alan S. and Donald P. Green. 2012. Field Experiments: Design, Analysis, and Interpretation. New York: W.W. Norton.
Rosenbaum, Paul R. 2002. Observational Studies. 2nd ed. New York: Springer.
| 1 2 3 4 5 6 7 | 
[1] -1.059701e-05  4.999930e+00
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.