全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SPSS论坛
2658 2
2014-04-10
I am looking at the habitat suitability of water voles for my research project.  Using the program SPSS (v21) I have computed a series of stepwise logistic regression models to predict their presence and absence in the habitat that I am looking at. They have successfully produced some results but when I try to plot a ROC curve, the following warning message comes up:

Warnings
Either or both of the positive and negative actual state groups have no valid observations. Estimation cannot be performed, and the ROC curve will not be displayed.

I have put the predicted probability values in the 'test variable' box and the variable that was included in the habitat suitability model in the 'state variable' box.  Has anyone had this warning come up before and know how to get round it?

Thank you very much.

Best wishes,


二维码

扫码加我 拉你入群

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

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

全部回复
2014-4-10 01:51:14
I believe the problem is in the logistic regression analysis, not the
ROC curve analysis.
I suggest first to try descriptives for the actual and predicted
values before turning to the ROC curve..

furthermore try to use logistic regression avoid the stepwise method
and use the enter method for the final (eg only the final model).

this example should work:
LOGISTIC REGRESSION VARIABLES Y
   /METHOD=enter X1 X2
   /CRITERIA=PIN(0.05) POUT(0.10) ITERATE(20) CUT(0.5)
   /save pred(predY) .
roc predY by Y (1)/print se.
二维码

扫码加我 拉你入群

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

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

2014-4-10 01:52:09
I believe the problem is in the logistic regression analysis, not the
ROC curve analysis.
I suggest first to try descriptives for the actual and predicted
values before turning to the ROC curve..

furthermore try to use logistic regression avoid the stepwise method
and use the enter method for the final (eg only the final model).

this example should work:
LOGISTIC REGRESSION VARIABLES Y
   /METHOD=enter X1 X2
   /CRITERIA=PIN(0.05) POUT(0.10) ITERATE(20) CUT(0.5)
   /save pred(predY) .
roc predY by Y (1)/print se.
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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