Part of the set of internal functions called within the tvma
function to assist
in the estimation of the time varying mediation effect.
smoothest(t.seq, t.coeff, t.est, deltat)
a vector of time points at each observation
estimated coefficients
time points at which to make the estimation
a small constant which controls the time-lag of the effect of the mediator on the outcome, half the time between two time points
a number computed via Fan and Gijbels' (1996) rule of thumb for bandwidth selector for alpha coefficient.
a number computed via Fan and Gijbels' (1996) rule of thumb for bandwidth selector for gamma coefficient.
a number computed via Fan and Gijbels' (1996) rule of thumb for bandwidth selector for beta coefficient.
a number computed via Fan and Gijbels' (1996) rule of thumb for bandwidth selector for tau coefficient.
estimated treatment effect on mediator
estimated treatment effect on outcome, adjusted for mediator
estimated mediator effect on outcome
estimated treatment effect on outcome, not adjusting for mediator
estimated mediation effect, product of hat.alpha and hat.beta