Python 2.7 - Rpy2 Cox Proprotional Hazards Model

我是研究僧i 提交于 2019-12-24 00:15:50

问题


I am using Python 2.7 on Mac OSX Lion and will be installing rpy2 to use Cox Proportional Hazards Model

I was just wondering: has anybody used rpy2 to do Cox Proportional Hazards before. I was reading some of the documentation on the rpy2 package and it mostly talks about creating dataframes and such, as opposed to stating how various functions can be run. So, how would I go about calling this function and then specifying the dependent time variable, as well as the censoring variable (designated by a binary 1 value)?

The R package for Mac also recommends that the computer not be connected to the internet when it is in use. Why is that?

来源:https://stackoverflow.com/questions/17278279/python-2-7-rpy2-cox-proprotional-hazards-model

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