A tidy implementation of the summarised_characteristics object.
asSurvivalResult.Rd
A tidy implementation of the summarised_characteristics object.
Examples
# \donttest{
cdm <- mockMGUS2cdm()
surv <- estimateSingleEventSurvival(
cdm = cdm,
targetCohortTable = "mgus_diagnosis",
targetCohortId = 1,
outcomeCohortTable = "death_cohort",
outcomeCohortId = 1,
eventGap = 7
) %>%
asSurvivalResult()
#> - Getting survival for target cohort 'mgus_diagnosis' and outcome cohort
#> 'death_cohort'
#> Getting overall estimates
#> `eventgap`, `outcome_washout`, `censor_on_cohort_exit`, `follow_up_days`, and
#> `minimum_survival_days` casted to character.
#> `result_id` is not present in result.
#> `result_id` is not present in result.
#> Warning: There was 1 warning in `dplyr::mutate()`.
#> ℹ In argument: `estimate_value = as.numeric(.data$estimate_value)`.
#> Caused by warning:
#> ! NAs introduced by coercion
# }