Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlap of multiple observation periods - Error in validateGeneratedCohortSet() #9

Open
ZorzArg opened this issue Jul 25, 2024 · 0 comments

Comments

@ZorzArg
Copy link

ZorzArg commented Jul 25, 2024

Hi,

This is more of a question rather than a description of a bug.

While trying to run incidence analysis, the code stopped while trying to run function generateTargetDenominatorCohortSet.
The error (part of it) I got is the following:

Error in `validateGeneratedCohortSet()`:                                     
! There is overlap between entries in the cohort, 18 overlaps detected first 5:

I also got the same error message (but with more overlaps) while running function cdm_from_con but I could get past that by setting argument .soft_validation to FALSE.
From the CDMConnector documentation of the function above we read:

Other analytic packages may break or produce incorrect results if soft_validation is TRUE and the observation period table contains overlapping observation periods.

I assume that this is the case for the IncidencePrevalence package but I would like to confirm with you.
My questions are the following:

  1. Is function generateTargetDenominatorCohortSet errors because ignoring overlapping observation periods would overestimate the time in the denominator?
  2. Is there a potential workaround to prevent this error from popping up? Or do we have to resolve this during ETL?

Thanks,
George

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant