Skip to content

Main content

Person Time Interval At Risk

Intersect one explicit entry/exit interval with a study observation window using half-open time boundaries.

Loading tool…

Description

Calculate overlap duration of supplied risk and observation intervals.

Statistical record calculations depend on risk-set boundaries, cluster assumptions, missingness codes and exposure definitions. Entry can be excluded while exit inclusion is a policy choice, and one design-effect formula assumes equal cluster sizes. A local flag or contribution does not fit a model or establish a clinical result.

Calculate overlap duration of supplied risk and observation intervals.

When to use this tool

Use Person Time Interval At Risk when you already have entryTime, exitTime, observationStart, observationEnd and need to calculate overlap duration of supplied risk and observation intervals.

How to use the tool and how it works

  1. Enter entryTime, exitTime, observationStart, observationEnd. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read atRiskTime. Use the output convention below.

Require both intervals ordered; return max(0,min(ends)-max(starts)).1

Input fieldMeaning and unitsAccepted input
entryTimeEntry TimeRequired. Finite number.
exitTimeExit TimeRequired. Finite number.
observationStartObservation StartRequired. Finite number.
observationEndObservation EndRequired. Finite number.
Output fieldInterpretationReturned shape
atRiskTimePositive overlap width of the supplied observation and risk intervals; touching boundaries give zero.Required. Finite number.
json
{
  "input": {
    "entryTime": 2,
    "exitTime": 10,
    "observationStart": 0,
    "observationEnd": 8
  },
  "output": {
    "atRiskTime": 6
  }
}

Limitations and assumptions

  • Touching endpoints have zero duration. This is continuous overlap, not inclusive calendar dates, an estimated survival probability or verified person-time.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Use the complete study design, data and statistical model for inference. Check censoring, clustering, visit windows, exposure and missingness conventions before combining these terms, and assess uncertainty with the full analysis.

References

  1. Calculation and input contract: biostatistics/person-time-interval-at-risk — tool.io

Similar or alternative tools