Skip to content

Main content

Survival Entry Exit Order Flag

Report survival-record entry/exit ordering without discarding a negative duration or estimating survival.

Loading tool…

Description

Check supplied survival entry/exit order and preserve signed duration.

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.

Check supplied survival entry/exit order and preserve signed duration.

When to use this tool

Use Survival Entry Exit Order Flag when you already have entryTime, exitTime and need to check supplied survival entry/exit order and preserve signed duration.

How to use the tool and how it works

  1. Enter entryTime, exitTime. 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 ordered, duration. Inspect ordered before interpreting the associated values.

Return exitTime>=entryTime and exitTime-entryTime.1

Input fieldMeaning and unitsAccepted input
entryTimeEntry TimeRequired. Finite number.
exitTimeExit TimeRequired. Finite number.
Output fieldInterpretationReturned shape
orderedOrderedRequired. Boolean.
durationexitTime-entryTime; a reversed interval is a successful negative result with ordered=false.Required. Finite number.
json
{
  "input": {
    "entryTime": 5,
    "exitTime": 12
  },
  "output": {
    "ordered": true,
    "duration": 7
  }
}

Limitations and assumptions

  • Reversed endpoints return false and negative duration rather than an error. No risk interval, event, censoring, survival time or study validity is established.
  • 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/survival-entry-exit-order-flag — tool.io

Similar or alternative tools