smoothest | R Documentation |
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)
t.seq |
a vector of time points at each observation |
t.coeff |
estimated coefficients |
t.est |
time points at which to make the estimation |
deltat |
a small constant which controls the time-lag of the effect of the mediator on the outcome, half the time between two time points |
bw_alpha |
a number computed via Fan and Gijbels' (1996) rule of thumb for bandwidth selector for alpha coefficient. |
bw_gamma |
a number computed via Fan and Gijbels' (1996) rule of thumb for bandwidth selector for gamma coefficient. |
bw_beta |
a number computed via Fan and Gijbels' (1996) rule of thumb for bandwidth selector for beta coefficient. |
bw_beta |
a number computed via Fan and Gijbels' (1996) rule of thumb for bandwidth selector for tau coefficient. |
hat.alpha |
estimated treatment effect on mediator |
hat.gamma |
estimated treatment effect on outcome, adjusted for mediator |
hat.beta |
estimated mediator effect on outcome |
hat.tau |
estimated treatment effect on outcome, not adjusting for mediator |
est.M |
estimated mediation effect, product of hat.alpha and hat.beta |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.