Learn R Programming

IncidencePrevalence (version 1.1.0)

asPrevalenceResult: A tidy implementation of the summarised_result object for prevalence results.

Description

A tidy implementation of the summarised_result object for prevalence results.

Usage

asPrevalenceResult(result, metadata = FALSE)

Value

A tibble with a tidy version of the summarised_result object.

Arguments

result

A summarised_result object created by the IncidencePrevalence package.

metadata

If TRUE additional metadata columns will be included in the result.

Examples

Run this code
# \donttest{
cdm <- mockIncidencePrevalence()
prev <- estimatePointPrevalence(cdm, "target", "outcome")
tidy_prev <- asPrevalenceResult(prev)
# }

Run the code above in your browser using DataLab