Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Cohort entry, include/exclude criteria, attrition, and specs.
cohort = ( eb.Cohort("t2dm", database=db) .entry(index, index="first") .include(db.demographic.age_at_index(18, 89)) .include(db.enrollment.covering_index(days_before=365, days_after=0)) .include(other_frame, window=(-365, 0)) .exclude(db.diagnosis.matching("C", match="starts_with"), window=(-365, 0)) ) print(cohort.attrition()) final = cohort.to_df()
.entry(frame, index="first")
.include(source, window=…)
.exclude(source, window=…)
.attrition()
.spec()
eb.from_spec(...)
.to_df()
.to_sql()
db.demographic.age_at_index(lo, hi)
db.enrollment.covering_index(days_before, days_after)
db.demographic.sex(...)
.race(...)
db.death.recorded(window=…)
include(frame, window=…)
window=(before, after)