全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 统计软件培训班VIP答疑区
4141 2
2010-05-26
我已经把excel表格转化成了xml格式。 在输入xmluse panel4.xml, doctype(excel) clear firstrow命令的时候,出现如下提示:

data type of Excel column not consistent
specifying the missing option will import inconsistent values as missing data
while the allstring option will import all as strings
file not Stata format
r(610);

不知是什么原因?我一开始想可能是数据中包含“N/A”这样的字样,所以把所有的N/A,#value!, #Div/0已经replace成了。可是还是出错。

因为不能上传XML格式的文件,所以上传了xls格式的文件。 盼解答。 谢谢!
附件: 您需要登录才可以下载或查看附件。没有帐号?我要注册
二维码

扫码加我 拉你入群

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

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

全部回复
2010-5-26 15:15:12
你的文件名不符合stata的命令规则,请查看视频中的讲解。

修改如下提示错误信息的变量名称:
. xmluse  "C:\Documents and Settings\Lenovo\桌面\panel.xml", clear missing first
(using doctype(excel) for C:\Documents and Settings\Lenovo\桌面\panel.xml)
Size(Ln asset) invalid name
(Size(Ln asset) is invalid variable name; renaming to var15)
(spaces converted to underscores for variable name: Tangibility_Ratio)

然后运行如下命令即可:
xmluse  "C:\Documents and Settings\Lenovo\桌面\panel.xml", clear missing first

最为简洁的办法:复制excel 中的数据,直接粘贴到stata中即可(现在stata中执行 edit 命令打开空白表格)。

附件中是处理好的数据。
3YR_AVG_RETURN_ON_ASSETS invalid name
(3YR_AVG_RETURN_ON_ASSETS is invalid variable name; renaming to var24)
附件: 您需要登录才可以下载或查看附件。没有帐号?我要注册
二维码

扫码加我 拉你入群

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

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

2010-5-26 19:05:30
To arlionn : many thanks!
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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