createSurvVar {exceldata}R Documentation

Create survival variables (survival duration + status)

Description

This function will create survival variables from an existing start variable date of event variable and last date followed variable

Usage

createSurvVar(data, newVarName, survVars, timeUnit = "month")

Arguments

data

A data frame returned by the importExcelData or readExcelData functions

newVarName

the name of the new survival variable. The status variable will be suffixed with '_status'

survVars

In order the start date, event date and date of last followup

timeUnit

Character, the unit of time to calculate survival variables for (ex: 'day' 'week' 'month' 'year')


[Package exceldata version 0.1.1.3 Index]