Software
This page includes the following R packages
RobustIV: Robust Instrumental Variable Methods in Linear Models
-
Description: Inference for the treatment effect with possibly invalid instrumental variables via TSHT ('Guo et al.’ (2018)) and SearchingSampling ('Guo’ (2021)), which are effective for both low- and high-dimensional covariates and instrumental variables; test of endogeneity in high dimensions ('Guo et al.’ (2018)).
-
GitHub repository: here, R package: RobustIV on CRAN.
-
Paper reference
Guo, Z., Kang, H., Cai, T. T. and Small, D. S. (2018).
Confidence Intervals for Causal Effects with Invalid Instruments using Two-Stage Hard Thresholding with Voting.
Journal of the Royal Statistical Society: Series B, 80(4), 793-815.
Guo, Z. (2023).
Causal Inference with Invalid Instruments: Post-selection Problems and A Solution Using Searching and Sampling.
Journal of the Royal Statistical Society: Series B, 85(3), 959–985.
Guo, Z., Kang, H., Cai, T. T. and Small, D. S. (2018).
Testing Endogeneity with High Dimensional Covariates.
The Journal of Econometrics, 207(1), 175-187.
SIHR: Statistical Inference in High Dimensional Regression
-
Description: Inference procedures in the high-dimensional setting for (1) linear functionals in generalized linear regression ('Cai et al.’ (2019), 'Guo et al.’ (2020) , 'Cai et al.’ (2021)), (2) individual treatment effects in generalized linear regression, (3) quadratic functionals in generalized linear regression ('Guo et al.’ (2019)).
-
GitHub repository: here, R package: SIHR on CRAN.
-
Paper reference
* Cai, T, Cai, T. T. and Guo, Z. (2021).
Optimal Statistical Inference for Individualized Treatment Effects in High-dimensional Models.
Journal of the Royal Statistical Society: Series B, 2021, 83(4): 669-719.
Guo, Z., Rakshit, P., Herman, D., and Chen, J. (2021).
Inference for Case Probability in High-dimensional Logistic Regression.
Journal of Machine Learning Research, 22(254), 1-54
Guo, Z., Renaux, C., Bühlmann, P., and Cai, T. T. (2021).
Group Inference in High Dimensions with Applications to Hierarchical Testing.
Electronic Journal of Statistics, 15(2), 6633-6676.
Ma, R., Guo, Z., Cai, T. T., and Li, H. (2024).
Statistical Inference for Genetic Relatedness Based On High-Dimensional Logistic Regression.
Statistica Sinica, 34(2), 1023–1043.
TSCI: Tools for Causal Inference with Possibly Invalid Instrumental Variables
-
Description: Two stage curvature identification with machine learning for causal inference in settings when instrumental variable regression is not suitable because of potentially invalid instrumental variables. Based on Guo and Buehlmann (2022) “Two Stage Curvature Identification with Machine Learning: Causal Inference with Possibly Invalid Instrumental Variables” .
-
GitHub repository: here, R package: TSCI on CRAN.
-
Paper reference
Guo, Z., Zheng, M., and Bühlmann, P. (2026).
Robustness Against Weak or Invalid Instruments: Exploring Nonlinear Treatment Models with Machine Learning.
Journal of Machine Learning Research, to appear.
controlfunctionIV: Control Function Methods with Possibly Invalid Instrumental Variables
-
Description: Inference with control function methods for nonlinear outcome models when the model is known ('Guo and Small’ (2016)) and when unknown but semiparametric ('Li and Guo’ (2020)), using the Control Function method and the SpotIV method.
-
GitHub repository: here, R package: controlfunctionIV on CRAN .
-
Paper reference
Guo, Z. and Small, D. S. (2016).
Control Function Instrumental Variable Estimation of Nonlinear Causal Effect Models.
Journal of Machine Learning Research, 17(100):1-35, 2016.
Li, S. and Guo, Z. (2020).
Causal Inference for Nonlinear Outcome Models with Possibly Invalid Instrumental Variables.
Technical Report
MaximinInfer
-
Description: MaximinInfer is a package that implements the sampling and aggregation method for the covariate shift maximin effect, which was proposed in Guo (2020). It constructs the confidence interval for any linear combination of the high-dimensional maximin effect.
-
GitHub repository: here, R package: MaximinInfer on CRAN.
-
Paper reference
Guo, Z. (2024).
Statistical Inference for Maximin Effects: Identifying Stable Associations across Multiple Studies .
Journal of the American Statistical Association, 119(547), 1968–1984.
DLL: Decorrelated Local Linear Estimator
-
Description: Implementation of the Decorrelated Local Linear estimator proposed in <arXiv:1907.12732>. It constructs the confidence interval for the derivative of the function of interest under the high-dimensional sparse additive model.
-
GitHub repository: here, R package: DLL on CRAN
-
Paper reference
*Guo, Z., Yuan, W., and Zhang, C. (2026).
Decorrelated Local Linear Estimator: Inference for Non-linear Effects in High-dimensional Additive Models.
Journal of Machine Learning Research, 27(27), 1–79.
DDL: Doubly Debiased Lasso
-
Description: DDL implements the Doubly Debiased Lasso estimator proposed in the Annals of Statistics article. It computes the estimator and a confidence interval for a target regression coefficient in a high-dimensional linear model with hidden confounders.
-
GitHub repository: here, R package: DDL on CRAN.
-
Paper reference
Guo, Z.#✉, Ćevid, D.#, and Bühlmann, P. (2022).
Doubly Debiased Lasso: High-Dimensional Inference under Hidden Confounding.
Annals of Statistics, 50 (3), 1320 - 1347.
maczic: Mediation Analysis for Count and Zero-Inflated Count Data
-
Description: Performs causal mediation analysis for count and zero-inflated count data with or without a post-treatment confounder; calculates power for mediation, direct, and total effects; and supports sensitivity analysis. The methods are described by Cheng et al. (2018) <doi:10.1177/0962280216686131> and Guo et al. (2018) <doi:10.1111/rssc.12233>. This software was supported by Grant R03DE028410 from the National Institute of Dental and Craniofacial Research, a component of the National Institutes of Health.
-
R package: maczic on CRAN.
-
Paper reference
Cheng J., Cheng, N. F., Guo, Z., Gregorich, S., Ismail, A. I. and Gansky, S. A. (2018).
Mediation Analysis for Count and Zero-Inflated Count Data.
Statistical Methods in Medical Research, 27(9), 2756-2774.
Guo, Z., Small, D. S., Gansky, S. A., and Cheng, J. (2018).
Mediation Analysis for Count and Zero-Inflated Count Data without Sequential Ignorability.
Journal of the Royal Statistical Society: Series C, 67(2), 371-394.