GithubHelp home page GithubHelp logo

Comments (4)

schuemie avatar schuemie commented on June 9, 2024

I'm sorry, I'm unable to reproduce that error. Are you sure your cohort table has a cohort_end_date field?

from featureextraction.

alondhe avatar alondhe commented on June 9, 2024

Yep, my scratch cohort tables for my T and C has the same structure as the CDM cohort:
cohort_definition_id, subject_id, cohort_start_date, cohort_end_date; and the O cohort is in the actual CDM cohort table.

Interestingly, I've tested using the getDbCovariateData function directly rather than through CohortMethod, and it doesn't throw the error. I think perhaps CohortMethod isn't including cohort_end_date in the #cohort_person temp table?

from featureextraction.

schuemie avatar schuemie commented on June 9, 2024

I've merged your pull request for CohortMethod, so I think this problem should be solved now.

However, I must warn that in general it is not a good idea to use information post-index date in your propensity or outcome model. In this case, the time in cohort (e.g. time on the drug) is most likely causally intertwined with the outcome itself.

from featureextraction.

alondhe avatar alondhe commented on June 9, 2024

Thanks @schuemie! My mistake -- I thought the default setting was TRUE, so I included it in my analysis. But I see now you've defaulted it to FALSE. But, hey, at least the bug is gone :)

from featureextraction.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.