CADErand {RCT2} | R Documentation |
Randomization-based method for the complier average direct effect and the complier average spillover effect
Description
This function computes the point estimates and variance estimates of the complier average direct effect (CADE) and the complier average spillover effect (CASE). The estimators calculated using this function are either individual weighted or cluster-weighted. The point estimates and variances of ITT effects are also included.
Usage
CADErand(data, individual = 1, ci = 0.95)
Arguments
data |
A data frame containing the relevant variables. The names for the variables should be: “Z” for the treatment assignment, “D” for the actual received treatment, “Y” for the outcome, “A” for the treatment assignment mechanism and “id” for the cluster ID. The variable for the cluster id should be a factor. |
individual |
A binary variable with TRUE for individual-weighted estimators and FALSE for cluster-weighted estimators. |
ci |
A numeric variable between 0 and 1 for the level of the confidence interval to be returned. |
Details
For the details of the method implemented by this function, see the references.
Value
A list of class CADErand
which contains the following items:
CADE |
The point estimates of the CADE for each assignment mechanism. |
CASE |
The point estimate of CASE for each assignment mechanism. |
var.CADE1 |
The variance estimate of CADE for each assignment mechanism. |
var.CASE1 |
The variance estimate of CASE for each assignment mechanism. |
DEY1 |
The point estimate of DEY for each assignment mechanism. |
DED1 |
The point estimate of DED for each assignment mechanism. |
var.DEY1 |
The variance estimate of DEY for each assignment mechanism. |
var.DED1 |
The variance estimate of DED for each assignment mechanism. |
SEY1 |
The point estimate of SEY for each pairwise groups of assignment mechanisms. |
SED1 |
The point estimate of SED for each pairwise groups of assignment mechanisms. |
var.SEY1 |
The variance estimate of SEY for each pairwise groups of assignment mechanisms. |
var.SED1 |
The variance estimate of SED for each pairwise groups of assignment mechanisms. |
lci.CADE |
The left endpoint for the confidence intervals for the CADE from each assignment mechanism. |
rci.CADE |
The right endpoint for the confidence intervals for the CADE from each assignment mechanism. |
lci.CASE |
The left endpoint for the confidence intervals for the CASE from each assignment mechanism. |
rci.CASE |
The left endpoint for the confidence intervals for the CASE from each assignment mechanism. |
lci.DEY |
The left endpoint for the confidence intervals for the DEY from each assignment mechanism. |
rci.DEY |
The left endpoint for the confidence intervals for the DEY from each assignment mechanism. |
lci.SEY |
The left endpoint for the confidence intervals for the SEY from each pairwise groups of assignment mechanisms. |
rci.SEY |
The left endpoint for the confidence intervals for the SEY from each pairwise groups of assignment mechanism. |
lci.DED |
The left endpoint for the confidence intervals for the DED from each assignment mechanism. |
rci.DED |
The left endpoint for the confidence intervals for the DED from each assignment mechanism. |
lci.SED |
The left endpoint for the confidence intervals for the SED from each pairwise groups of assignment mechanism. |
rci.SED |
The left endpoint for the confidence intervals for the SED from each pairwise groups of assignment mechanism. |
Author(s)
Kosuke Imai, Department of Statistics, Harvard University imai@harvard.edu, https://imai.fas.harvard.edu/; Zhichao Jiang, School of Public Health and Health Sciences, University of Massachusetts Amherst zhichaojiang@umass.edu; Karissa Huang, Department of Statistics, Harvard College krhuang@college.harvard.edu
References
Kosuke Imai, Zhichao Jiang and Anup Malani (2018). “Causal Inference with Interference and Noncompliance in the Two-Stage Randomized Experiments”, Technical Report. Department of Politics, Princeton University.
Examples
data(india)
india$id <- factor(india$id)
CADErand(india, 0.95)