Logistic Regression in R (SAS-like output)

ε祈祈猫儿з 提交于 2019-11-30 19:56:01

问题


I have a problem at hand which I'd think is fairly common amongst groups were R is being adopted for Analytics in place of SAS. Users would like to obtain results for logistic regression in R that they have become accustomed to in SAS.

Towards this end, I was able to propose the Design package in R which contains many functions to extract the various metrics that SAS reports.

If you have suggestions pertaining to other packages, or sample code that replicates some of the SAS outputs for logistic regression, I would be glad to hear of them.

Some of the requirements are:

  • Stepwise variable selection for logistic regression

  • Choose base level for factor variables

  • The Hosmer-Lemeshow statistic

  • concordant and discordant

  • Tau C statistic

Thank you for your suggestions.


回答1:


What I have found so far is that the Design and rms package to be the best (and only) package for these outputs.




回答2:


Just because SAS does it, doesn't necessarily mean it's good statistical practice. Step-wise regression is particularly problematic.



来源:https://stackoverflow.com/questions/3439248/logistic-regression-in-r-sas-like-output

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!