// 运行IV Probit模型
ivprobit dependent_variable (endogenous_variable = instruments) exogenous_variables
// 存储IV Probit模型结果
estimates store ivprobit_model
// 运行弱工具变量检验
weakiv dependent_variable endogenous_variable exogenous_variables
// 存储弱工具变量检验结果
estimates store weakiv_test
// 导出IV Probit模型结果和弱工具变量检验结果到一个表格中
esttab ivprobit_model weakiv_test, ///
cells(b(fmt(3)) se(fmt(3))) ///
starlevels(* 0.05 ** 0.01 *** 0.001) ///
legend label noobs nomtitle ///
title("IV Probit Results and Weak IV Test") ///
replace
|