Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request Support for 'survival::coxph' models #3

Closed
benneely opened this issue Mar 25, 2015 · 1 comment
Closed

Request Support for 'survival::coxph' models #3

benneely opened this issue Mar 25, 2015 · 1 comment

Comments

@benneely
Copy link

Under PMML - General Regression, CoxRegression is listed as a model type. Would it be easy to add support for this modeling framework?:

test   <- survival::coxph(survival::Surv(futime,fustat) ~ age + rx + ecog.ps, survival::ovarian, x=TRUE)
print(test)
library(r2pmml)
r2pmml(test, "test.pmml")
@vruusmann
Copy link
Member

You can already use the standard pmml package to perform the conversion of survival::coxph models:

library("pmml")
saveXML(pmml(test), "coxph.pmml")

I haven't tested if it is possible to train coxph models using the caret package. Maybe such coxph model objects are incompatible with the standard exporter code (eg. see issue #1), which would justify the development of another converter class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants