getEunomiaPlpData | R Documentation |
This function creates a plpData object from the Eunomia database. It gets the connection details, creates the cohorts, and extracts the data. The cohort is predicting GIbleed in new users of celecoxib.
getEunomiaPlpData(covariateSettings = NULL)
covariateSettings |
A list of covariateSettings objects created using the
|
An object of type plpData
, containing information on the cohorts, their
outcomes, and baseline covariates. Information about multiple outcomes can be
captured at once for efficiency reasons. This object is a list with the
following components:
A data frame listing the outcomes per person, including the time to event, and the outcome id
A data frame listing the persons in each cohort, listing their exposure status as well as the time to the end of the observation period and time to the end of the cohort
An Andromeda object created
with the FeatureExtraction
package. This object contains the following items:
An Andromeda table listing the covariates per person in the two cohorts. This is done using a sparse representation: covariates with a value of 0 are omitted to save space. Usually has three columns, rowId, covariateId and covariateValue'.
An Andromeda table describing the covariates that have been extracted.
An Andromeda table with information about which analysisIds from 'FeatureExtraction' were used.
covariateSettings <- FeatureExtraction::createCovariateSettings(
useDemographicsAge = TRUE,
useDemographicsGender = TRUE,
useConditionOccurrenceAnyTimePrior = TRUE
)
plpData <- getEunomiaPlpData(covariateSettings = covariateSettings)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.