This function will create survival variables from an existing start variable date of event variable and last date followed variable
createRecodedVar(data, dictionary, newVarName, instructions)is data returned by the importExcelData or readExcelData functions
is the data dictionary returned by importExcelData or readDataDict functions
the name of the new variable.
are from the data dictionary
The instructions are contained in the Levels column of the data dictionary and should be in the format:
original_varname,newCode1=oldcode1,oldCode2,...,newCode2=oldCode3,..
For Example: instructions="T_Stage,T0=T0,T1up=T1,T2,T3,T4"
will recode T1-T4 as T1up and retain T0 as is