This function will create survival variables from an existing start variable date of event variable and last date followed variable
createSurvVar(data, newVarName, survVars, timeUnit = "month")A data frame returned by the importExcelData or readExcelData functions
the name of the new survival variable. The status variable will be suffixed with '_status'
In order the start date, event date and date of last followup
Character, the unit of time to calculate survival variables for (ex: 'day' 'week' 'month' 'year')