全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
2053 1
2008-01-27

用什么命令可以求得一组数据中的第二大值?(既不能看数据,也不能用list命令,只用一条命令就可以完成)

英文原题:

Do not peek at the data or use the list function to find this out (use a single command).

4.1 What is the second largest value of earnings in the data?

4.2 What is the third smallest value?

本人初学,求高手赐教,谢谢

4.1 What is the second largest value of earnings in the data?

4.2 What is the third smallest value?

本人初学,求高手赐教,谢谢

Do not peek at the data or use the list function to find this out (use a single command).

4.1 What is the second largest value of earnings in the data?

4.2 What is the third smallest value?

本人初学,求高手赐教,谢谢

4.1 What is the second largest value of earnings in the data?

4.2 What is the third smallest value?

本人初学,求高手赐教,谢谢

[此贴子已经被作者于2008-1-27 15:47:18编辑过]

二维码

扫码加我 拉你入群

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

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

全部回复
2008-2-14 10:01:00

sort x,ascend

gen x2lastmax=X[_N-1]

gen x3min=x[3]

二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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