Time Varying Mediation Analysis
Bootstrap function for computing CIs for coefficients for a continuous...
Bootstrap samples to estimate confidence intervals for coefficients fo...
Bootstrap samples to estimate confidence intervals for binary outcome ...
Bootstrap samples to estimate confidence intervals for continuous outc...
Bootstrap samples to estimate confidence intervals for the mediation e...
Function to estimate coefficients at time t
Bootstrapping samples to estimate mediation effects confidence interva...
Function to estimate coefficients at time t.
Function to transpose the data from long to wide format
Function to compute new Mediator and Outcome using time t and t-1 mean...
Function to compute local polynomial estimation using rule of thumb fo...
Time Varying Mediation Function: Continuous Outcome and Two Treatment ...
Time Varying Mediation Function: Continuous Outcome and Three Treatmen...
Time Varying Mediation Function: Binary Outcome and Two Treatment Grou...
Main function for time varying mediation function for continuous outco...
Provides functions for estimating mediation effects that vary over time as described in Cai X, Coffman DL, Piper ME, Li R. Estimation and inference for the mediation effect in a time-varying mediation model. BMC Med Res Methodol. 2022;22(1):1-12.
Useful links