This article describes the stgest command, which implements G-estimation (as proposed by Robins) to estimate the effect of a time-varying exposure on survival time, allowing for time-varying confounders.
Details
Title
G-estimation of causal effects, allowing for time-varying confounding