aufenthalt_fun
aufenthalt_fun.RdShifts hospitalization status Aufenthalt: J/N of an AhvNr from a data set to another. If AhvNr isn't contained in source data, it assigns N in target. Used in RA calculation to create variable Aufenthalt_Vj ('previous year's hospitalization status').
Arguments
- dt_T
- Target of the shift of hospitalzation status. A data.table featuring individual insurant data according to naming and data type standards used in data set - test_data.
- dt_T_1
- Source of the shift of hospitalization status. A data.table featuring individual insurant data according to naming and data type standards used in data set - test_data.
Value
A data.table featuring entries of dt_T and variable Aufenthalt_Vj
- Aufentalt_Vj
- hospitalization status of - dt_T_1assigned to- dt_Tby- AhvNr