简体   繁体   中英

Logistic Regression in R (SAS-like output)

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.

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

到目前为止,我发现Design和rms包是这些输出的最佳(也是唯一)包。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM