benchmarkIncidencePrevalence {IncidencePrevalence}R Documentation

Run benchmark of incidence and prevalence analyses

Description

Run benchmark of incidence and prevalence analyses

Usage

benchmarkIncidencePrevalence(
  cdm,
  returnParticipants = FALSE,
  analysisType = "all"
)

Arguments

cdm

A CDM reference object

returnParticipants

Whether to return participants

analysisType

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

Value

a tibble with time taken for different analyses

Examples


cdm <- mockIncidencePrevalenceRef(
  sampleSize = 100,
  earliestObservationStartDate = as.Date("2010-01-01"),
  latestObservationStartDate = as.Date("2010-01-01"),
  minDaysToObservationEnd = 364,
  maxDaysToObservationEnd = 364,
  outPre = 0.1
)

timings <- benchmarkIncidencePrevalence(cdm)


[Package IncidencePrevalence version 0.7.2 Index]