Create the default covariate settings for acute or chronic diseases

createDefaultCovariateSettings(
  excludedCovariateConceptIds = c(),
  includedCovariateIds = c(),
  includedCovariateConceptIds = c(),
  addDescendantsToExclude = FALSE,
  startDayWindow1 = 0,
  endDayWindow1 = 9999,
  startDayWindow2 = NULL,
  endDayWindow2 = NULL,
  startDayWindow3 = NULL,
  endDayWindow3 = NULL
)

Arguments

excludedCovariateConceptIds

A list of conceptIds to exclude from featureExtraction. These should include all concept_ids that were used to define the xSpec model (default=NULL)

includedCovariateIds

A list of covariate IDs that should be restricted to.

includedCovariateConceptIds

A list of covariate concept IDs that should be restricted to.

addDescendantsToExclude

Should descendants of excluded concepts also be excluded? (default=FALSE)

startDayWindow1

The day to start time window 1 for feature extraction

endDayWindow1

The day to end time window 1 for feature extraction

startDayWindow2

The day to start time window 2 for feature extraction

endDayWindow2

The day to end time window 2 for feature extraction

startDayWindow3

The day to start time window 3 for feature extraction

endDayWindow3

The day to end time window 3 for feature extraction #'

Details

Function to create the default covariate settings for acute or chronic diseases