楼主: maxin102
44194 9

在stata中如何输入多行命令呢? [推广有奖]

  • 1关注
  • 6粉丝

副教授

64%

还不是VIP/贵宾

-

威望
0
论坛币
1892 个
通用积分
1.6460
学术水平
5 点
热心指数
14 点
信用等级
1 点
经验
12145 点
帖子
767
精华
0
在线时间
774 小时
注册时间
2009-10-6
最后登录
2017-7-11

楼主
maxin102 发表于 2011-12-6 18:54:55 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
就是一个命令必须要多行输入,但是一敲回车就执行了,不能换行怎么办?
二维码

扫码加我 拉你入群

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

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

关键词:Stata tata 怎么办 如何

沙发
woshi17320 发表于 2011-12-6 18:57:13
......
精神病人思维广,智障儿童欢乐多。

藤椅
woshi17320 发表于 2011-12-6 18:58:46
解决方法有两种:1、在dofile中编写命令(估计楼主不知道什么是dofile...)
2、用换行符“\\\”
精神病人思维广,智障儿童欢乐多。

板凳
aolei 发表于 2011-12-6 18:59:23
要看书啊,这个问题太基本了, ///
这样就可以接着写命令了。

报纸
chyshl 发表于 2011-12-6 19:05:00
用do文件吗,是个批处理器。

地板
maxin102 发表于 2011-12-7 09:23:01
谢谢。

7
太极无极 在职认证  发表于 2012-11-8 02:25:36
If a command continues over two lines, we use /// at the end of the first line to make Stata ignore the line break. An alternative is to use /* at the end of the first line and */ at the beginning of the second line to “comment out” the linebreak. Note that these methods are for use in a do-file and do not work in the Command window where they would result in an error. In the Command window, commands can wrap over several lines.
已有 2 人评分学术水平 热心指数 收起 理由
liuzc_108 + 1 + 1 精彩帖子
恋恋想秋秋 + 1 + 1 精彩帖子

总评分: 学术水平 + 2  热心指数 + 2   查看全部评分

8
太极无极 在职认证  发表于 2012-11-8 02:27:19
aolei 发表于 2011-12-6 18:59
要看书啊,这个问题太基本了, ///
这样就可以接着写命令了。
If a command continues over two lines, we use /// at the end of the first line to make Stata ignore the line break. An alternative is to use /* at the end of the first line and */ at the beginning of the second line to “comment out” the linebreak. Note that these methods are for use in a do-file and do not work in the Command window where they would result in an error. In the Command window, commands can wrap over several lines.

9
双鱼小垃圾 发表于 2020-2-22 11:56:08
ctrl+enter就可以了

10
经国之志 学生认证  发表于 2021-7-26 20:59:30
直接在Do-file Editior 进行命令输入即可,在这里面回车就可以换行,然后“do”

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

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