View source: R/Probit-control.R
ProbitControl | R Documentation |
Perform causal inference in the probit outcome model with possibly invalid IVs under the majority rule.
ProbitControl( Y, D, Z, X = NULL, intercept = TRUE, invalid = FALSE, d1 = NULL, d2 = NULL, w0 = NULL, bs.Niter = 40 )
Y |
The outcome observation, a vector of length n. |
D |
The treatment observation, a vector of length n. |
Z |
The instrument observation of dimension n \times p_z. |
X |
The covariates observation of dimension n \times p_x. |
intercept |
Whether the intercept is included. (default = |
invalid |
If |
d1 |
A treatment value for computing CATE(d1,d2|w0). |
d2 |
A treatment value for computing CATE(d1,d2|w0). |
w0 |
A vector for computing CATE(d1,d2|w0). |
bs.Niter |
The number of bootstrap resampling size for computing the confidence interval. |
ProbitControl
returns an object of class "SpotIV", which is a list containing the following components:
|
The estimate of the model parameter in front of the treatment. |
|
The estimated standard error of betaHat. |
|
The estimate of CATE(d1,d2|w0). |
|
The estimated standard deviation of |
|
The estimated set of relevant IVs. |
|
The estimated set of relevant and valid IVs. |
|
The indicator that the majority rule is satisfied. |
Li, S., Guo, Z. (2020), Causal Inference for Nonlinear Outcome Models with Possibly Invalid Instrumental Variables, Preprint arXiv:2010.09922.
Y <- mroz[,"lwage"] D <- mroz[,"educ"] Z <- as.matrix(mroz[,c("motheduc","fatheduc","huseduc","exper","expersq")]) X <- mroz[,"age"] Y0 <- as.numeric((Y>median(Y))) d2 = median(D); d1 = d2+1; w0 = apply(cbind(Z,X)[which(D == d2),], 2, mean) Probit.model <- ProbitControl(Y0,D,Z,X,d1 = d1,d2 = d2,w0 = w0) summary(Probit.model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.