全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1407 0
2021-01-16
stata运行save ${path}\temp\zone_`zone', replace这步时,总是报错file D:\开发区信息\数据\temp\zone_上海.dta could not be opened,
把temp删掉变成save ${path}\zone_`zone', replace后就能正常运行,但是存储处多出很多.dta文件不好管理。
想知道加temp后问题出在哪里,求各位大神帮忙解答下!


命令如下:

foreach zone in "上海" "云南"   {
  2.         preserve
  3.
.         keep if prov == "`zone'"
  4.         save ${path}\temp\zone_`zone', replace
  5.         
.         restore
  6.         }
(2,504 observations deleted)
(note: file D:\开发区信息\数据\temp\zone_上海.dta not found)
file D:\开发区信息\数据\temp\zone_上海.dta could not be opened
r(603);
(路径为path = "D:\开发区信息\数据")


二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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