全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
2833 2
2020-12-26
请问各位坛友,当其中某一条命令出错时如何强制运行stata命令?

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

感谢回复!
二维码

扫码加我 拉你入群

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

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

全部回复
2020-12-27 09:08:16
请 help capture。
二维码

扫码加我 拉你入群

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

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

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.
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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