楼主: lucywitherspoon
3301 1

请教stata中的函数命令 [推广有奖]

  • 0关注
  • 1粉丝

VIP

博士生

58%

还不是VIP/贵宾

-

威望
0
论坛币
367 个
通用积分
0.0036
学术水平
1 点
热心指数
1 点
信用等级
1 点
经验
1635 点
帖子
123
精华
0
在线时间
301 小时
注册时间
2009-2-22
最后登录
2019-7-2

楼主
lucywitherspoon 发表于 2011-10-4 11:15:47 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
请问各位高手,by year code : gen dup=cond(_N==1,0,_n),这个命令是什么意思呢
二维码

扫码加我 拉你入群

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

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

关键词:Stata tata 是什么意思 code year

沙发
ermutuxia 发表于 2014-9-28 17:45:18
cond(x,a,b,c) or cond(x,a,b)
       Domain x:     -8e+307 to 8e+307 and missing; 0 means false, otherwise interpreted as true
       Domain a:     numbers and strings
       Domain b:     numbers if a is a number; strings if a is a string
       Domain c:     numbers if a is a number; strings if a is a string
       Range:        a, b, and c
       Description:  returns a if x is true and nonmissing, b if x is false, and c if x is missing.
                     returns a if c is not specified and x evaluates to missing.

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-31 22:45