文章预览
文献来源 Ding, T., et al. (2024). An inquiry into the nexus between artificial intelligence and energy poverty in the light of global evidence Appendix A. Supplementary data 【数据+Stata】 下载包 ssc install qregpd, replace
ssc install moremata, replace
ssc install amcmc, replace 示例代码 cd "C:\Download \1 -s2.0-S0140988324004560-mmc1\Code and Data"
use Data , clear
xtset id year
gl control Gdpg lnUrban lnOpen lnIndustry lnGov lnDen
set seed 123
qregpd lnEP lnAI $ control , id ( id ) fix ( year ) quantile ( 0.25 ) ///
optimize ( mcmc ) noisy draws ( 1000 ) burn ( 100 ) arate ( . 5 ) 得到结果 Adaptive MCMC optimization
................................................. 50: f(x) = -23.5553865
................................................. 100: f(x) = -22.208123
................................................. 150: f(x) = -22.5819652
................................................. 200: f(x) =
………………………………