Skip to contents

A tidy implementation of the summarised_result object for incidence results.

Usage

asIncidenceResult(result)

Arguments

result

A summarised_result object created by the IncidencePrevalence package.

Value

A tibble with a tidy version of the summarised_result object.

Examples

# \donttest{
cdm <- mockIncidencePrevalence()
#> Note: method with signature ‘DBIConnection#Id’ chosen for function ‘dbExistsTable’,
#>  target signature ‘duckdb_connection#Id’.
#>  "duckdb_connection#ANY" would also be valid
inc <- estimateIncidence(cdm, "target", "outcome")
#>  Getting incidence for analysis 1 of 1
#>  Overall time taken: 0 mins and 1 secs
tidy_inc <- asIncidenceResult(inc)
# }