楼主: njulily
1779 3

各路高手进来看看!急急急 [推广有奖]

  • 0关注
  • 1粉丝

博士生

23%

还不是VIP/贵宾

-

威望
0
论坛币
63352 个
通用积分
0.0011
学术水平
3 点
热心指数
4 点
信用等级
3 点
经验
1988 点
帖子
107
精华
0
在线时间
326 小时
注册时间
2005-12-31
最后登录
2024-10-10

楼主
njulily 发表于 2009-7-5 22:30:54 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
* unique rank for each family member (non-hh head or spouse) based on age 每个家庭成员(非户主或配偶)的年龄的排列
sort hhid
by hhid: egen agerk=rank(nh1b_3), unique, if nh1b_1~=1 & nh1b_1~=2
其中nh1b_3是年龄,后面的if条件表示非户主和配偶。
有哪位高手能告知unique是什么意思?
egen 新变量=rank(老变量),unique, if
这个命令的具体含义是什么?小女子先谢谢了。
二维码

扫码加我 拉你入群

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

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

关键词:unique Family Member Based 是什么意思 高手

回帖推荐

eblog 发表于3楼  查看完整内容

rank(exp) [, [field|track|unique]] (allows by varlist:) creates ranks (within varlist) of exp; by default, equal observations are assigned the average rank. The field option calculates the field rank of exp: the highest value is ranked 1, and there is no correction for ties. That is, the field rank is 1 + the number of values that are higher. The track option calculates the track rank of e ...

本帖被以下文库推荐

沙发
sckaka 发表于 2009-7-16 17:37:39
唉。
help吧。

藤椅
eblog 发表于 2009-7-16 17:50:52
rank(exp) [, [field|track|unique]]   (allows by varlist:)  
creates ranks (within varlist) of exp; by default, equal observations are assigned the average rank.  The field option calculates the field rank of exp: the highest value is ranked 1, and there is no correction for ties.  That is, the field rank is 1 + the number of values that are higher.  The track option calculates the track rank of exp:  the lowest value is ranked 1, and there is no correction for ties.  That is, the track rank is 1 + the number of values that are lower.  The unique option calculates the unique rank of exp: values are ranked 1,...,#, and values and ties are broken arbitrarily.  Two values that are tied for second are ranked 2 and 3.

板凳
njulily 发表于 2009-7-16 22:04:38
谢谢可爱的版主。

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-10 13:44