全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
3121 12
2012-03-06

final data.xls
大小:(1.28 MB)

 马上下载



请教各位大牛,我的worksheet 在附件中,为什么我用这些变量做regression :

proc reg data=a;

model controlpremium= totaltransactionvalue priorcap percentsought totalcommonequity time sic beta gdp;

run;

会报错那?

二维码

扫码加我 拉你入群

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

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

全部回复
2012-3-6 03:01:05
ERROR: Variable totaltransactionvalue in list does not match type prescribed for this list.
ERROR: Variable priorcap in list does not match type prescribed for this list.
ERROR: Variable percentsought in list does not match type prescribed for this list.
ERROR: Variable totalcommonequity in list does not match type prescribed for this list.
ERROR: Variable beta in list does not match type prescribed for this list.
这样的错误是不是变量类型有问题那?谢谢
二维码

扫码加我 拉你入群

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

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

2012-3-6 04:47:22
You are right. REG only takes numbers, not ones like numbers, '123', but true numbers, 123.
Jingju
二维码

扫码加我 拉你入群

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

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

2012-3-6 04:52:07
jingju11 发表于 2012-3-6 04:47
You are right. REG only takes numbers, not ones like numbers, '123', but true numbers, 123.
Jingju
then how could i change the currently numbers into the form i need? is there any command to do so? could u please do me a favor to give out some codes to fulfill that? Thanks so much for your help.
二维码

扫码加我 拉你入群

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

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

2012-3-6 05:02:07
jingju11 发表于 2012-3-6 04:47
You are right. REG only takes numbers, not ones like numbers, '123', but true numbers, 123.
Jingju
another question is that the numbers like, '123', can be calculated but cant do the regression right? cus i conducted calculation on the same dataset. it works, but when i wanna do regression it stuck there.
二维码

扫码加我 拉你入群

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

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

2012-3-6 05:24:22
Please google how to check and change variable types.
JingJu
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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