R 中的逻辑回归(类 SAS 输出) [英] Logistic Regression in R (SAS-like output)

查看:61
本文介绍了R 中的逻辑回归(类 SAS 输出)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我手头有一个问题,我认为这在很多人中很常见分析组采用 R 代替 SAS.用户希望在 R 中获得逻辑回归的结果他们已经习惯了 SAS.

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.

为此,我能够在 R 中提出设计包,其中包含许多函数来提取 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.

如果您对其他包或示例代码有任何建议复制了逻辑回归的一些 SAS 输出,我很高兴听到他们的消息.

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.

一些要求是:

  • 逻辑回归的逐步变量选择

  • Stepwise variable selection for logistic regression

选择因子变量的基准水平

Choose base level for factor variables

Hosmer-Lemeshow 统计数据

The Hosmer-Lemeshow statistic

和谐与不和谐

Tau C 统计量

感谢您的建议.

推荐答案

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

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

这篇关于R 中的逻辑回归(类 SAS 输出)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆