Skip to contents

Builds the FeatureExtraction::createCovariateSettings() object that extracts the covariates written by write_custom_covariates() (or write_geography_measurements()), so a study asks the standard tool for them.

Usage

custom_covariate_settings(
  concept_ids,
  long_term_start_days = -365,
  end_days = 0,
  ...
)

Arguments

concept_ids

Numeric vector of the custom concept ids to extract (for example GEOGRAPHY_CONCEPT_IDS).

long_term_start_days, end_days

Window relative to the cohort start, default the 365 days before.

...

Further arguments passed to FeatureExtraction::createCovariateSettings(), for example useDemographicsGender = TRUE to extract standard covariates in the same pass.

Value

A FeatureExtraction covariate settings object.