createSelectSubjectsToIncludeArgs: Create a parameter object for the function...

Description Usage Arguments Details

View source: R/CreateArgFunctions.R

Description

Create a parameter object for the function selectSubjectsToInclude

Usage

1
2
3
4
5
6
7
createSelectSubjectsToIncludeArgs(
  firstOutcomeOnly = TRUE,
  washoutPeriod = 180,
  matchingCriteria = NULL,
  minAge = NULL,
  maxAge = NULL
)

Arguments

firstOutcomeOnly

Use the first outcome per person?

washoutPeriod

Minimum required numbers of days of observation for inclusion as either case or control.

matchingCriteria

If provided, a case-time-control analysis will be performed and controls will be matched based on these criteria.

minAge

Minimum age at which patient time will be included in the analysis. Note that information prior to the min age is still used to determine exposure status after the minimum age (e.g. when a prescription was started just prior to reaching the minimum age). Also, outcomes occurring before the minimum age is reached will be considered as prior outcomes when using first outcomes only. Age should be specified in years, but non-integer values are allowed. If not specified, no age restriction will be applied.

maxAge

Maximum age at which patient time will be included in the analysis. Age should be specified in years, but non-integer values are allowed. If not specified, no age restriction will be applied.

Details

Create an object defining the parameter values.


OHDSI/CaseCrossover documentation built on Nov. 21, 2020, 7:03 a.m.