Counting-Process Cox Regression (Time-Varying Covariates, Delayed Entry, Strata)
Counting-process Cox regression fits a proportional hazards model to (start, stop] intervals, allowing time-varying covariates, delayed entry and stratification, with cluster-robust standard errors by subject.
계수과정 Cox 회귀는 (시작, 종료] 구간 자료에 비례위험 모형을 적합해 시간가변 공변량, 지연 진입, 층화를 다루고 대상자별 군집 강건 표준오차를 제공하는 방법입니다.
My covariate changes during follow-up and some patients enter the cohort only after the time origin; how do I fit a Cox model correctly?
추적 중에 공변량 값이 바뀌고 일부 환자는 시간 원점 이후에 코호트에 들어오는데, Cox 모형을 어떻게 맞게 적합하나요?
Split each subject's follow-up into intervals with the covariate value that held during each interval and give every interval its start and stop time, so a subject joins the risk sets only after entry. Fit the Cox model on these intervals, cluster the standard errors by subject, and compare with a naive fit that ignores delayed entry.
When to use Counting-Process Cox Regression (Time-Varying Covariates, Delayed Entry, Strata)
- Covariates change over follow-up (treatment status, lab values, exposure).
- Subjects enter observation after the time origin (left truncation, age as time scale).
- You need stratified baseline hazards or several rows per subject.
When to use something else
- Every subject has one row from time zero with fixed covariates; ordinary Cox regression is enough.
- The covariate is affected by earlier treatment and also confounds later treatment; use g-methods such as marginal structural models.
Assumptions and requirements
- Proportional hazards within strata.
- Entry time is independent of event time given the covariates (quasi-independent truncation).
- Intervals of the same subject do not overlap and covariates are constant within each interval.
What the analysis reports
- Hazard ratios with model-based and cluster-robust standard errors
- Left-truncated Kaplan-Meier and Nelson-Aalen estimates with risk-set sizes
- Hazard ratios from a naive fit that ignores delayed entry
- Likelihood-ratio test of all covariates
How to report it
In a counting-process Cox model with time-varying [covariate] and delayed entry ([value] intervals from [value] subjects, [value] events), the hazard ratio was [value] (95% CI [value] to [value], cluster-robust SE).
Related methods
- Cox Proportional Hazards Regression
- Kaplan-Meier Survival Analysis
- Andersen-Gill Recurrent Event Model
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with lifelines at a stated tolerance of 1e-4.
독립 계산. lifelines 대조 참조 시험 1건 통과(허용오차 1e-4).
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Counting-Process Cox Regression (Time-Varying Covariates, Delayed Entry, Strata) on Quorant
- Data you need
- a table (CSV or Excel) with a time variable, an event indicator, predictor (feature) columns and a unit (entity) ID
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.