2026-07-09http://hdl.handle.net/123456789/568299This 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.G-estimation of causal effects, allowing for time-varying confoundingText