全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
41108 10
2012-05-30
RT,谢谢!
二维码

扫码加我 拉你入群

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

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

全部回复
2012-5-30 11:03:40
一般来说,gen后面所跟的是直接的运算表达式如 gen y=x1+x2  ,也有少量的函数; 但是egen 命令 只能与函数连用 如total() pc() 可以help 下egen 大致有几十个吧
二维码

扫码加我 拉你入群

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

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

2012-5-30 12:02:51
znxkxx 发表于 2012-5-30 11:03
一般来说,gen后面所跟的是直接的运算表达式如 gen y=x1+x2  ,也有少量的函数; 但是egen 命令 只能与函数 ...
明白了,谢谢!
二维码

扫码加我 拉你入群

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

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

2016-9-16 16:47:07
znxkxx 发表于 2012-5-30 11:03
一般来说,gen后面所跟的是直接的运算表达式如 gen y=x1+x2  ,也有少量的函数; 但是egen 命令 只能与函数 ...
谢谢~~
二维码

扫码加我 拉你入群

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

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

2018-8-9 16:50:39
用了help egen命令看到:
egen creates newvar of the optionally specified storage type equal to fcn(arguments).  Here fcn() is a function specifically written for egen, as documented below or as written by users.  Only egen functions may be used with egen, and conversely, only egen may be used to run egen functions.
注意看红色的部分,egen有单独的为它写的函数,而且这些函数只能用在egen里面!
再去看help gen,并没有这些!
二维码

扫码加我 拉你入群

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

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

2018-9-5 23:31:33
十三度的勇士 发表于 2018-8-9 16:50
用了help egen命令看到:
egen creates newvar of the optionally specified storage type equal to fcn(a ...
谢谢回复
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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