全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
8810 25
2021-02-04
命令是egi没错,但是命令的help文件有点问题,举的例子是错的,从这个网站http://fmwww.bc.edu/repec/bocode/e/egi.ado可以看出来,如果要算eg指数的话,应该在index的option里填EG而不是help文件里的例子EGI,一直按EGI的话只会一直报错。
所以在安装egi命令以后,运行的命令应该是:


egi 变量名(如从业人数之类的变量,结合需要写), in(行业变量) st(地区变量) index(EG)  [,mult(权重变量) by(时间变量)]



如有问题,欢迎交流
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2021-2-6 18:13:35
help文件如下:

*Version October 2015
----------------------
basic syntax:

egi var, in(industry) st(state)index(#) mult(weight_var) by(year)

Description:

EGI calculates Ellision and Glaeser's index of geographical concentration of various
industries. The module computes industry and region specific share of employment and
also suitable for survey data where information up to plant level is available. EGI
also evaluate other components of Ellision and Glaeser's index like square deviation
of employment share  and Herfindhal index of plant level employment concentration.

Ellision and Glaeser's index

EGIi = (GIi - HIi)/(1-HIi)

where, GIi = Sum of squared deivation of ith industry's state employment share from
a measure Ss.

Ss = employment share ith state in the average industry.

Hi = Herfindhal style measure of the plant level concentration of employment in ith
industry.

EGI syntax return and store the Ellision and Glaeser's index for each industry variety
as a new variable. By choosing suitable index option it may also return other components.
Option


Option
-------
by(varlist): allows groups defined by `varlist' e.g. (year)

mult : allows for computing weighted index

Examples:
----------
egi worker , in(nic2) st(stcode) index(EGI) by(year) mult(mult)
egi worker , in(nic2) st(stcode) index(HHI) by(year)
egi worker , in(nic2) st(stcode) index(GI)
egi worker , in(nic2) st(stcode) index(SS)

Author:
Jay Dev Dubey
Jawaharlal Nehru University
New Delhi                                       
jaydevdubeyster@gmail.com

Acknowladgemnt:
---------------
Pritam Datta (PHFI)

References:
---------------

Ellison, Glenn, and Edward L. Glaeser. Geographic concentration in US manufacturing industries:
a dartboard approach. No. w4840. National Bureau of economic research, 1994.

Dumais, Guy, Glenn Ellison, and Edward L. Glaeser. "Geographic concentration as a dynamic process."
Review of Economics and Statistics 84.2 (2002): 193-204.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2021-2-9 11:25:13
楼主你好,请问EG指数计算的stata命令中权重是什么意思啊,该怎么计算?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2021-2-9 11:51:27
4665_1574343124 发表于 2021-2-9 11:25
楼主你好,请问EG指数计算的stata命令中权重是什么意思啊,该怎么计算?
具体计算过程我没有研究过,权重可以不设定,不是必选项,我没有用这个option
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2021-2-9 12:43:52
Lee_iris 发表于 2021-2-9 11:51
具体计算过程我没有研究过,权重可以不设定,不是必选项,我没有用这个option
谢谢您的回答,那直接将命令后面中括号里面的去掉就可以了吧,这样算出来就是表示产业集聚的EG指数了吧?感觉计算的过程过于简单了,结果中同一行业所有年份的EG指数数值相同,这是正常的吗?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2021-2-9 12:53:15
4665_1574343124 发表于 2021-2-9 12:43
谢谢您的回答,那直接将命令后面中括号里面的去掉就可以了吧,这样算出来就是表示产业集聚的EG指数了吧? ...
对,权重那个option直接去掉就行,不确定的话可以打开链接看看他的命令具体的代码,计算过程与所需的公式是否符合,然后同一地区同一行业eg指数相同应该是对的,所有年份都一样感觉上好像不太对,如果你分年计算,加了by(year)的option

以上是个人理解,不一定正确。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群