DO文件导出命令(DO File export Command)

系统教程 行业动态 更新时间:2024-06-14 17:02:18
DO文件导出命令(DO File export Command)

我想知道是否有一种方法可以将我在Stata中创建的数据导出为.dta的Stata文件格式。 我使用下面的代码来创建数据集。

use data1, clear foreach num of numlist 2/30 { append using data`num' }

I was wondering if there was a way in which I could export the data I create in Stata do file to the Stata file format of .dta. I'm using the following code to create the dataset.

use data1, clear foreach num of numlist 2/30 { append using data`num' }

最满意答案

为了将名称和工作目录指定为Stata Do-File的一部分,请save "C:\Users\user\Desktop\name.dta"来完成这项工作。

In order to specify a name and working directory as part of your Stata Do-File, save "C:\Users\user\Desktop\name.dta"should do the job.

更多推荐

本文发布于:2023-04-21 18:57:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/20f0246a57f5d29bbad05f795b4956e7.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:命令   文件   File   export   Command

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!