||
egen -- Extensions to generate
egen命令的一般语句:egen newvar = fcn(arguments) ;egen命令的菜单使用方法:Data > Create or change data > Create new variable (extended)。egen 是generate命令的扩展,fcn()是专门支持egen命令的函数。
1.统计概要(Summary statistics)
这部分的egen函数包括:count(), iqr(), kurt(), mad(), max(), mdev(), mean(), median(), min(),mode(), pc(), pctile(), sd(), skew(), and total()
2.生成模式(Generating patterns)
3.标记变量之间的差异(Marking differences among variables)
4.排序(Ranks)
5.标准化变量(Standardized variables)
6.行函数(Row functions)
7.分类变量与整型变量(Categorical and integer variables)
8. 连接字符串(String variables)
最后,众多有创新精神的Stata使用者自行编写了很多实用的支持egen的函数,使得Stata更为灵活和强大。大家可以通过net search egen命令查询。
软件传送门:Stata 12 SE 绿色版及使用手册(共17本)
http://www.epiman.cn/thread-33102-1-1.html
手机版|会员|至尊|接种|公卫人 ( 沪ICP备06060850号-3 )
GMT+8, 2024-4-27 23:10 , Processed in 0.029537 second(s), 6 queries , Gzip On, MemCached On.
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.