Time Varying Mediation Analysis


[Up] [Top]

Documentation for package ‘tvmediation’ version 1.1.0

Help Pages

bootci_coeff_2trt Bootstrap function for computing CIs for coefficients for a continuous outcome and two treatment groups
bootci_coeff_3trt Bootstrap samples to estimate confidence intervals for coefficients for a continuous outcome and three treatment groups.
bootci_coeff_binary Bootstrap samples to estimate confidence intervals for binary outcome coefficients.
bootci_tvmb Bootstrap samples to estimate confidence intervals for the mediation effect for a binary outcome.
bootci_tvm_3trt Bootstrap samples to estimate confidence intervals for continuous outcome and three treatment groups.
coeff Function to estimate coefficients at time t
estBootCIs Bootstrapping samples to estimate mediation effects confidence intervals for continuous outcome and two treatment (exposure) groups.
estCoeff Function to estimate coefficients at time t.
LongToWide Function to transpose the data from long to wide format
newMediatorOutcome Function to compute new Mediator and Outcome using time t and t-1 mean centered on the individual.
smoker Wisconsin Smokers' Health Study 2
smoothest Function to compute local polynomial estimation using rule of thumb for bandwidth selection
tvma Time Varying Mediation Function: Continuous Outcome and Two Treatment Groups
tvma_3trt Time Varying Mediation Function: Continuous Outcome and Three Treatment Groups
tvmb Time Varying Mediation Function: Binary Outcome and Two Treatment Groups
tvmcurve_3trt Main function for time varying mediation function for continuous outcome and three treatment arms (i.e., exposure groups).