全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
18653 2
2014-04-29
我对6年的数据进行多元回归分析,用xtset进行面板数据设置,以上市公司代码(stkcd)和年份(year)作为两个维度,输入命令:xtset stkcd year之后,出现以下错误,该怎么解决:

[P]     error . . . . . . . . . . . . . . . . . . . . . . . .  Return code 109
        type mismatch;
        In an expression, you attempted to combine a string and numeric
        subexpression in a logically impossible way.  For instance, you
        attempted to subtract a string from a number or you attempted
        to take the substring of a number.

(end of search)


二维码

扫码加我 拉你入群

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

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

全部回复
2014-4-29 19:05:22
我觉得应该还是变量的属性不对,你browse下看看,是否有字符型变量,一般是红色的,你把它变成数值型在xtset试下。
二维码

扫码加我 拉你入群

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

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

2021-6-29 01:20:46
可能是在excel表中的数据是文本型(即左上角有个绿色小三角)需要换成数值型才可以
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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