Method to fit semi-parametric model (Cox) and Kaplan-Meier estimator to a SurvivalData object
1 2 3 4 5 6 7 | fitSemiParametric(object, ...)
## S4 method for signature 'SurvivalData'
fitSemiParametric(object, endPoint,
subgroup = as.character(NA), covariates = character(0),
strata = character(0), conf.type = c("none", "plain", "log",
"log-log")[3], ties = c("efron", "breslow", "exact")[2])
|
object |
(SurvivalData) The object to fit the semi-parametric model and calculate the KM estimator |
... |
additional argument |
endPoint |
(character) which endpoint the SemiParametricModel is associated with |
subgroup |
(character) which subgroup the SemiParametricModel is associated with (or |
covariates |
(character vector) names of covariates used when fitting the Cox model if any |
strata |
(character vector) names of covariates to be stratified when fitting the Cox model |
conf.type |
("none", "plain", "log" [default], "log-log") argument passed to survfit |
ties |
("efron", "breslow" (default), "exact") argument passed to Coxph |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.