全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
22454 21
2008-12-04
就是把 result window 清空(clear the result window)
是什么命令?应该怎么实现呢?
这个功能是比较有用的,有两点理由:
(1) after poking around awhile with a dataset and/or changing one's mind about an analysis, one wants to look at a fresh, clean set of results without seeing what came before (I won't comment on the psychology of this, but only admit that I occasionally feel this way myself), or
(2) one wants to print a clean analysis without previous mistakes and/or false starts. There may be other reasons, but off the top of my head I can't think of any.
哪位高手能够搞定?


二维码

扫码加我 拉你入群

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

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

全部回复
2008-12-7 08:43:00
这个问题有点意思
二维码

扫码加我 拉你入群

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

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

2008-12-12 15:25:00

在stata的论坛上找到一个解决的办法

http://www.stata.com/statalist/archive/2005-12/msg00142.html

*! version 0.1 5Dec2005
program define cls
qui query
qui loc lines = c(pagesize)
if c(more) == "on" {
qui set more off
display _newline(`lines')
qui set more on
}
else {
display _newline(`lines')
}
end

当然,我更喜欢只用一句:display _newline(100)

二维码

扫码加我 拉你入群

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

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

2008-12-13 00:22:00

不错!有趣!
二维码

扫码加我 拉你入群

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

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

2008-12-13 00:30:00


New message for statalist as follows:

It won't bite in practice, but the line
   qui query
does nothing useful here. Almost all of the work here is done by the single line 
   di _newline(`=c(pagesize)')
although that's not easy to remember or type.

Nick
n.j.cox@durham.ac.uk


  


[此贴子已经被作者于2008-12-13 0:34:50编辑过]

二维码

扫码加我 拉你入群

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

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

2008-12-13 09:03:00
上面的程序已经看到过了,只是生成了一些“空行”而已,并没有清屏,达不到我上面所列的两个目的
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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