楼主: Lee_iris
2889 2

[数据管理求助] 当其中某一条命令出错时如何强制运行stata命令? [推广有奖]

已卖:1253份资源

教授

46%

还不是VIP/贵宾

-

威望
0
论坛币
1167 个
通用积分
1196.1965
学术水平
36 点
热心指数
43 点
信用等级
35 点
经验
14324 点
帖子
893
精华
0
在线时间
1517 小时
注册时间
2019-3-5
最后登录
2026-1-4

楼主
Lee_iris 在职认证  学生认证  发表于 2020-12-26 21:07:37 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
请问各位坛友,当其中某一条命令出错时如何强制运行stata命令?

想要运行一系列并列的命令,试试哪个参数最后能得到较好的结果,但是中间有的命令计算不出来,就停住了,总是需要手动再选中其他剩余的命令,所以想问下,有没有什么操作是可以当某一条命令出错以后 强制运行其余命令的,出错的命令不涉及其余命令的计算。

感谢回复!
二维码

扫码加我 拉你入群

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

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

关键词:stata命令 Stata tata

沙发
黃河泉 在职认证  发表于 2020-12-27 09:08:16
请 help capture。

藤椅
Lee_iris 在职认证  学生认证  发表于 2020-12-28 09:44:55
黃河泉 发表于 2020-12-27 09:08
请 help capture。
感谢您的回复!很有帮助!   


capture executes command, suppressing all its output (including error messages, if any) and issues
    a return code of zero.  The actual return code generated by command is stored in the built-in
    scalar _rc.

    capture can be combined with {} to produce capture blocks, which suppress output for the block of
    commands.  See the technical note in [P] capture for more information.

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-7 19:40