Skip to contents

Fixes a data issue with length of stay and survival duration being filled in across 2 columns. and missing last observation dates so that we can calculate survival censoring consistently in other data sets.

Usage

derive_survival_times_pneumo(df, v, ...)

Arguments

df

the dataframe.

v

the value set. usually precomputed by the augment framework the value set can be explicitly supplied with v = get_value_sets(df)

...

ignored

Value

a dataframe

Details

Calculates:

  • A consistent length of stay - shortest of length of stay and 30 day and 1 yr survival duration

  • A consistent uncensored time to death - shortest of 30 day and 1 yr survival duration

  • A consistent time to last observation