全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
3252 1
2011-10-04
请问各位高手,by year code : gen dup=cond(_N==1,0,_n),这个命令是什么意思呢
二维码

扫码加我 拉你入群

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

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

全部回复
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.
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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