1 Star 0 Fork 20

wxq8888wxq/gtfpch_1

forked from wxq8888wxq/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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wxq8888wxq/gtfpch_1.git
git@gitee.com:wxq8888wxq/gtfpch_1.git
wxq8888wxq
gtfpch_1
gtfpch_1
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385