Learn R Programming

IncidencePrevalence (version 1.1.0)

benchmarkIncidencePrevalence: Run benchmark of incidence and prevalence analyses

Description

Run benchmark of incidence and prevalence analyses

Usage

benchmarkIncidencePrevalence(cdm, analysisType = "all")

Value

a tibble with time taken for different analyses

Arguments

cdm

A CDM reference object

analysisType

A string of the following: "all", "only incidence", "only prevalence"

Examples

Run this code
# \donttest{
cdm <- mockIncidencePrevalence(
  sampleSize = 100,
  earliestObservationStartDate = as.Date("2010-01-01"),
  latestObservationStartDate = as.Date("2010-01-01"),
  minDaysToObservationEnd = 364,
  maxDaysToObservationEnd = 364,
  outPre = 0.1
)

timings <- benchmarkIncidencePrevalence(cdm)
# }

Run the code above in your browser using DataLab