Generate the PMML representation for a coxph object from package survival.
# S3 method for coxph
pmml(model, model.name="CoxPH_Survival_Regression_Model",
app.name="Rattle/PMML",
description="CoxPH Survival Regression Model",
copyright=NULL, transforms=NULL, unknownValue=NULL, …)
a coxph object.
a name to be given to the model in the PMML code.
the name of the application that generated the PMML code.
a descriptive text for the Header element of the PMML code.
the copyright notice for the model.
data transformations represented in PMML via pmmlTransformations.
value to be used as the 'missingValueReplacement' attribute for all MiningFields.
further arguments passed to or from other methods.
A coxph object is the result of fitting a proportional hazards regression model, using the "coxph" function from the package survival. Although the survival package supports special terms "cluster", "tt" and "strata", only the special term "strata" is supported by the pmml package. Note that special term "strata" cannot be a multiplicative variable and only numeric risk regression is supported.
R project CRAN package: survival: Survival Analysis https://CRAN.R-project.org/package=survival