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.
更多推荐
发布评论