1 Star 0 Fork 20

SHunan/gtfpch

forked from kerrydu/gtfpch 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
example.do 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
kerrydu 提交于 2021-10-22 17:41 . revised for sj
capture log close
sjlog using ex.describe, replace
use example.dta
describe
sjlog close, replace
capture log close
sjlog using ex.teddf, replace
teddf K L= Y: CO2, dmu(Province) time(year) sav(ex.teddf.result,replace)
sjlog close, replace
capture log close
sjlog using ex.teddf.direction, replace
gen gK=0
gen gL=0
gen gY=Y
gen gCO2=-CO2
teddf K L= Y: CO2, dmu(Province) time(year) gx(gK gL) gy(gY) gb(gCO2) sav(ex.teddf.direction.result,replace)
sjlog close, replace
capture log close
sjlog using ex.teddf.nonr, replace
teddf K L= Y: CO2, dmu(Province) time(year) nonr sav(ex.teddf.nonr.result,replace)
sjlog close, replace
capture log close
sjlog using ex.teddf.nonr.weight, replace
mat wmatrix=(0.5,0.5,1,1)
teddf K L= Y: CO2, dmu(Province) time(year) nonr wmat(wmatrix) sav(ex.teddf.nonr.weight.result,replace)
sjlog close, replace
capture log close
sjlog using ex.gtfpch, replace
egen id=group(Province)
xtset id year
gtfpch K L= Y: CO2, dmu(Province) global sav(ex.gtfpch.result,replace)
sjlog close, replace
capture log close
sjlog using ex.gtfpch.nonr, replace
gtfpch K L= Y: CO2, dmu( Province ) nonr global sav(ex.gtfpch.nonr.result,replace)
sjlog close, replace
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiaofan-studies-hard/gtfpch.git
git@gitee.com:xiaofan-studies-hard/gtfpch.git
xiaofan-studies-hard
gtfpch
gtfpch
master

搜索帮助