全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1567 3
2016-12-26
各位老师好,
我写了一个logistic回归程序如下:

proc logistic data=Ads.f_case1_c descending;
class lenert_eight (param=ref ref='State 8') gender (param=ref ref='Female');
model GP_C (event='Yes')=age gender lenert_eight / stb aggregate; * stb: display the standardized estimates, aggregate: calculate deviance and Pearson goodness-of-fit statistics ;
by lenert_eight;
output out=GP_C_pro  predicted=prob ;
format gender gender. GP_C GP_C. lenert_eight lenert_eight.;
run;

但是进行到by lenert_eight的时候程序提示出错:ERROR: Data set ADS.F_CASE1_C is not sorted in ascending sequence. The current BY group has Lenert 8 states = State 1 and the next BY  group has Lenert 8 states = ..


即使改成 by lenert_eight descending 或者 by lenert_eight notsorted都不行。求教到底是怎么回事?怎么解决?
二维码

扫码加我 拉你入群

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

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

全部回复
2016-12-26 21:12:59
希望有老师能来帮忙解决一下
二维码

扫码加我 拉你入群

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

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

2016-12-26 22:04:13
My purpose is to let SAS that gives me the separated predicted value by by lenert_eight, directly
二维码

扫码加我 拉你入群

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

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

2016-12-26 23:10:30
先前没有先排序
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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