全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1225 1
2012-06-21
Generating the mean of the variable like :

bys id: egen vari_mean= mean(vari).

And I have six years data. (1956 1957 1958  1959 1960 1961 ).
but I want to generate the mean value of the first three years(1956 1957 1958), so what should I do?
Thank you for your attention.
二维码

扫码加我 拉你入群

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

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

全部回复
2012-6-22 10:51:11
use if condition
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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