Author: Osman Mahic
Date: 15-02-2025
This repository presents a mathematical formulation of the Sequential Conditional Mean Model (SCMM) with Time-Varying Propensity Scores—a Generalized Estimating Equations (GEE)-based approach to modeling time-varying treatment effects, as applied in my study (https://doi.org/10.1093/ndt/gfae069.1616).
This method was first described by:
Keogh, R. H., et al. (2017). Analysis of longitudinal studies with repeated outcome measures: Adjusting for time-dependent confounding using conventional methods. American Journal of Epidemiology, 187(5), 1085–1092. https://doi.org/10.1093/aje/kwx311
Let
We aim to estimate the following conditional expectation at a given time:
Because adjustment is made for
A SCMM is a doubly-robust estimator when a time-varying propensity score is included as a covariate. Given that
Where the class probabilities were estimated using the softmax function:
With
R version 4.1.3 or higher with the following packages:
nnet
: Feed-Forward Neural Networks and Multinomial Log-Linear Modelsgeepack
: Generalized Estimating Equation Package