Cohort Event Intervals
get_cohort_event_intervalsAggregate event-to-event pendency across a COHORT of marks — e.g. "average days from office action to publication for marks published in Q2 2026". Pick the cohort by an anchor event (preset: publication, notice_of_publication, registration, notice_of_allowance, abandonment, first_office_action — or raw event codes, trailing * = prefix) within a date window (max 366 days), and an interval start/end event. Returns avg/median/percentiles in days, how many cohort marks never had the start event, and example marks. Samples up to max_sample marks from the start of the window and says so when truncated. Use get_event_code_reference first if you need non-preset event codes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_event | No | Interval end event (first occurrence on/after the start event). Defaults to the cohort event itself. | |
| max_sample | No | Max cohort marks to measure (default 1000, max 2000). | |
| start_event | No | Interval start event (first occurrence on/before the cohort event). Defaults to first_office_action. | |
| cohort_event | No | Preset anchor event defining cohort membership (e.g. publication = PUBO). | |
| cohort_date_to | Yes | Cohort window end (YYYY-MM-DD). Required. Window max 366 days. | |
| end_event_codes | No | Alternative to end_event: raw event codes (trailing * = prefix). | |
| cohort_date_from | Yes | Cohort window start (YYYY-MM-DD). Required. | |
| start_event_codes | No | Alternative to start_event: raw event codes (trailing * = prefix). | |
| cohort_event_codes | No | Alternative to cohort_event: raw USPTO event codes; trailing * matches a prefix (e.g. "NPUB*"). |