uniTrans: Transform survival data into uniform marginals using a Cox...

View source: R/uniTrans.R

uniTransR Documentation

Transform survival data into uniform marginals using a Cox proportional hazards model

Description

Transform survival data into uniform marginals using a Cox proportional hazards model

Usage

uniTrans(formula, data = NULL)

Arguments

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 Surv function. The RHS must contain a 'cluster' term

data

a data.frame containing the variables in the model

Details

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.

Value

Data.frame with two vectors of failure times and two vectors of status indicators

Author(s)

Jeppe E. H. Madsen <jeppe.ekstrand.halkjaer@gmail.com>


Jeepen/biSurv documentation built on Sept. 30, 2023, 3:55 a.m.