uniTrans | R Documentation |
Transform survival data into uniform marginals using a Cox proportional hazards model
uniTrans(formula, data = NULL)
formula |
a formula object, with the response on the left of a ~
operator, and the terms on the right. The response must be a
survival object as returned by the |
data |
a data.frame containing the variables in the model |
transforms event times to uniform marginals using a Cox model. This is convenient if you want to analyze your data taking covariates into account. If formula doesn't contain any covariates, the function just returns the original data split up in different columns.
Data.frame with two vectors of failure times and two vectors of status indicators
Jeppe E. H. Madsen <jeppe.ekstrand.halkjaer@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.