楼主: peyzf
38821 49

[数据管理求助] stata可否做洛伦兹曲线及计算基尼系数? [推广有奖]

  • 1关注
  • 63粉丝

警督

大师

59%

还不是VIP/贵宾

-

威望
2
论坛币
566901 个
通用积分
188.0557
学术水平
218 点
热心指数
240 点
信用等级
140 点
经验
132143 点
帖子
12795
精华
0
在线时间
2969 小时
注册时间
2007-9-8
最后登录
2024-4-24

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
分几个问题来问。

1.tab x,sort 只能计算降序的频率。其中x为数值型变量。能不能转化为升序?这是做洛伦兹曲线的要求。

2.能否用tab的结果来绘洛伦兹曲线?如何进行?

大家一般怎样根据数据做出洛伦兹曲线并计算基尼系数?
二维码

扫码加我 拉你入群

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

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

关键词:Stata 基尼系数 tata 洛伦兹 tab 基尼系数 如何

沙发
nkzzq5566 发表于 2009-7-13 17:46:58 |只看作者 |坛友微信交流群
there is a package called DASP in stata, you can download it by google search it,  obviously the keywords is DASP, It has all the inequlity plus other index for income distribution dynamics. hope this pieces of info can help you,
已有 2 人评分论坛币 学术水平 热心指数 收起 理由
daphnacc + 1 + 1 精彩帖子
eblog + 100 好帖

总评分: 论坛币 + 100  学术水平 + 1  热心指数 + 1   查看全部评分

使用道具

藤椅
peyzf 发表于 2009-7-13 18:56:24 |只看作者 |坛友微信交流群
many thanks.

使用道具

板凳
peyzf 发表于 2009-7-13 19:52:36 |只看作者 |坛友微信交流群

RE: stata可否做洛伦兹曲线及计算基尼系数?

a good introduction to the DASP
http://132.203.59.36/DASP/aboutdasp.htm

使用道具

报纸
peyzf 发表于 2009-7-13 19:54:08 |只看作者 |坛友微信交流群
the attached book.

DASP_MANUAL_V2.0.pdf

1.29 MB

已有 1 人评分学术水平 收起 理由
yinlin0379 + 3 热心帮助其他会员

总评分: 学术水平 + 3   查看全部评分

使用道具

地板
jbx_rex 发表于 2009-11-27 10:30:23 |只看作者 |坛友微信交流群
在网上搜不到有下载的,能提供个链接吗?
2# nkzzq5566

使用道具

7
zhaowill 发表于 2009-11-27 17:05:50 |只看作者 |坛友微信交流群
stata也有其他计算不平等指数的命令
Measures of inequality                                          [sg30: STB-23]
----------------------
      atkinson varname [if exp] [in range] [fweights] [, epsilon(#[,#[,...]]) ]
      inequal varname [if exp] [in range] [fweights]
      lorenz varname [if exp] [in range] [fweights] [, offset graph-options ]
      relsgini varname [if exp] [in range] [fweights] [, delta(#[,#[,...]]) ]
These four ado-files provide a variety of measures of inequality.  Atkinson computes the Atkinson inequality index using the inequality aversion parameter(s) specified in the parameter list. inequal displays the following measures: relative mean deviation, coefficient of variation, standard deviation of logs, Gini index, Mehran index, Piesch index, Kakwani index, Theil entropy index, and mean log deviation.  lorenz displays a Lorenz curve. relsgini computes the Donaldson-Weymark relative S-Gini using the distributional sensitivity parameters specified in the parameter list.

Options
delta() specifies the distributional sensitivity parameters used in computing the relative S-Gini.
epsilon() specifies the inequality aversion parameters used in computing Atkinson inequality index.
offset specifies the graph options "noaxis xline(0,1) yline(0,1)".
Author

使用道具

8
talentyxc 发表于 2009-11-27 21:02:23 |只看作者 |坛友微信交流群
自己编个程吧

使用道具

9
sungmoo 发表于 2009-11-28 22:20:54 |只看作者 |坛友微信交流群
*求x的Gini系数(设x中无负值且无缺失值)

sort x
egen t=sum(_n*x)
egen s=sum(x)
g gini=2*t/(_N*s)-1-1/_N

使用道具

10
ddf2002 发表于 2010-1-28 01:35:48 |只看作者 |坛友微信交流群
论坛上有陈传波老师的stata十八讲,其中有一部分专门讲基尼系数的计算。
已有 1 人评分经验 学术水平 收起 理由
happy_287422301 + 100 + 2 精彩帖子

总评分: 经验 + 100  学术水平 + 2   查看全部评分

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-1 12:43