楼主: 掌极道尊
41287 21

[回归分析求助] 为何我用outreg2指令不能导出回归结果? [推广有奖]

  • 0关注
  • 0粉丝

本科生

63%

还不是VIP/贵宾

-

威望
0
论坛币
48 个
通用积分
4.8094
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
4894 点
帖子
183
精华
0
在线时间
29 小时
注册时间
2014-2-19
最后登录
2015-11-23

楼主
掌极道尊 发表于 2014-3-25 22:39:06 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
我想把回归结果导出成excel或者word, 用的命令是:
outreg2 using myfile
提示的错误信息是
file myfile.txt could not be opened
r(603);
求大神看看这是肿么一回事。。。。
QQ图片20140325223728.jpg
我用的数据是伍德里奇第五版的WAGE2.dta
请大神来帮我看看啊!我是stata新人,求笼罩!
二维码

扫码加我 拉你入群

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

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

关键词:outreg 回归结果 Out REG opened stata outreg2

回帖推荐

jjjj6666 发表于4楼  查看完整内容

you can just using outreg2 using "foldername\myfile" where foldername is the folder you have written right.

沙发
jjjj6666 发表于 2014-3-26 05:15:08
you may not have the written privilege?  Change to another folder and try.
已有 1 人评分论坛币 学术水平 热心指数 收起 理由
SpencerMeng + 10 + 1 + 1 热心帮助其他会员

总评分: 论坛币 + 10  学术水平 + 1  热心指数 + 1   查看全部评分

藤椅
掌极道尊 发表于 2014-3-26 18:21:38
jjjj6666 发表于 2014-3-26 05:15
you may not have the written privilege?  Change to another folder and try.
how to change to another folder? 我默认的存储目录是c盘中的state folder。

板凳
jjjj6666 发表于 2014-3-26 20:40:00
you can just using

outreg2 using "foldername\myfile"

where foldername is the folder you have written right.
已有 3 人评分经验 论坛币 学术水平 热心指数 收起 理由
葫芦娃大王 + 10 + 10 精彩帖子
用户名是啥 + 1 好的意见建议
我学的统计 + 1 + 1 精彩帖子太好了,解决了!我尝试了csv、doc.

总评分: 经验 + 10  论坛币 + 10  学术水平 + 1  热心指数 + 2   查看全部评分

报纸
嘉峪 发表于 2014-4-7 16:33:52
刚解决了这个问题
全文的回答是
The default Vista or Windows 7 permission settings do not allow applications to write permissions to their respective install directories even if you are logged in to a machine as Administrator. Stata needs these permissions to update.
To get around the problem, you must right-click on the Stata executable in the Stata install directory and select “Run as Administrator” from the menu to open Stata. Then type update all followed by update swap in your Stata Command window to update Stata error-free.

我使用了第一个解决办法,就是单击右键选择以管理员身份运行stata解决的。。
已有 3 人评分学术水平 热心指数 信用等级 收起 理由
羽杉日辰 + 1 精彩帖子
Lee_iris + 2 + 2 + 2 精彩帖子
xuanxuexuanyu + 1 + 1 + 1 热心帮助其他会员

总评分: 学术水平 + 4  热心指数 + 3  信用等级 + 3   查看全部评分

地板
tiramisuxbw 发表于 2015-1-15 17:29:11
我是Mac系统,不存在楼上所说的管理员权限的问题。

楼楼上@jjjj6666的方法解决了问题,就是加上文件路径。非常感谢!

7
1679111204 发表于 2015-4-29 14:46:31
tiramisuxbw 发表于 2015-1-15 17:29
我是Mac系统,不存在楼上所说的管理员权限的问题。

楼楼上@jjjj6666的方法解决了问题,就是加上文件路径 ...
可是路径是中文的,怎么弄呢?

8
chu229399197 在职认证  发表于 2015-7-18 20:53:09
tiramisuxbw 发表于 2015-1-15 17:29
我是Mac系统,不存在楼上所说的管理员权限的问题。

楼楼上@jjjj6666的方法解决了问题,就是加上文件路径 ...
层主,我也是Mac系统,但是回归后显示file 1.txt could not be opened,这是我自己在桌面上建立的以1命名的excel表哥,这个路径怎么找啊?求教,谢谢!

9
乐晰tj 在职认证  发表于 2016-7-29 11:31:41
tiramisuxbw 发表于 2015-1-15 17:29
我是Mac系统,不存在楼上所说的管理员权限的问题。

楼楼上@jjjj6666的方法解决了问题,就是加上文件路径 ...
请问您是怎么解决mac结果直接导出问题的?可否烦请您将具体命令贴上来呢?感激不尽

10
mayywj0528 在职认证  发表于 2016-8-15 11:30:39
@tiramisuxbw请问这个文件路径具体是什么?谢谢谢谢

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

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