楼主: liujiafei
22525 21

[数据管理求助] [求助] Stata有没有类似DOS的清屏命令? [推广有奖]

  • 1关注
  • 1粉丝

已卖:64份资源

教授

46%

还不是VIP/贵宾

-

威望
0
论坛币
23896 个
通用积分
158.7828
学术水平
8 点
热心指数
9 点
信用等级
8 点
经验
8988 点
帖子
263
精华
0
在线时间
2418 小时
注册时间
2006-3-21
最后登录
2025-11-27

楼主
liujiafei 发表于 2008-12-4 17:19:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
就是把 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.
哪位高手能够搞定?


二维码

扫码加我 拉你入群

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

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

关键词:Stata tata DOS 有没有 Psychology mistakes previous comment without window

本帖被以下文库推荐

沙发
eblog 发表于 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)

已有 3 人评分经验 论坛币 热心指数 收起 理由
静水深流 + 20 热心帮助其他会员
crystal8832 + 10 + 10 + 1 补偿
dxystata + 5 好的意见建议

总评分: 经验 + 30  论坛币 + 15  热心指数 + 1   查看全部评分

板凳
voodoo 发表于 2008-12-13 00:22:00

不错!有趣!
巫毒上传,必属佳品!
坛友下载,三思后行!

报纸
voodoo 发表于 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编辑过]

已有 2 人评分论坛币 热心指数 收起 理由
crystal8832 + 10 + 1 补偿
dxystata + 5 好的意见建议

总评分: 论坛币 + 15  热心指数 + 1   查看全部评分

巫毒上传,必属佳品!
坛友下载,三思后行!

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

7
eyetracker 发表于 2010-5-23 14:43:54
这个问题貌似还没有解决,顶起来~~

8
arlionn 在职认证  发表于 2010-5-23 15:22:24
其实,用 log using 和 log close 命令更符合你的要求。
最终的问题归结为:清屏的目的是什么?
已有 2 人评分论坛币 热心指数 收起 理由
crystal8832 + 10 + 1 补偿
dxystata + 5 好的意见建议

总评分: 论坛币 + 15  热心指数 + 1   查看全部评分

9
lightingstar 在职认证  发表于 2011-8-23 17:08:30
高度程序时,每次运行完后查看结果,容易与上次运行的结果混淆,
matlab上有clc 清屏命令

10
lightingstar 在职认证  发表于 2011-8-23 17:08:48
高度程序时,每次运行完后查看结果,容易与上次运行的结果混淆,
matlab上有clc 清屏命令

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-9 06:43