因果森林学习代码 运行代码前请安装grfinstall.package("grf")
代码为R语言
代码是自己生成的示例,可供学习和参考。
A package for forest-based statistical estimation and inference. GRF provides non-parametric methods for heterogeneous treatment effects estimation (optionally using right-censored outcomes, multiple treatment arms or outcomes, or instrumental variables), as well as least-squares regression, quantile regression, and survival regression, all with support for missing covariates.