smoothest {tvmediation}R Documentation

Function to compute local polynomial estimation using rule of thumb for bandwidth selection

Description

Part of the set of internal functions called within the tvma function to assist in the estimation of the time varying mediation effect.

Usage

smoothest(t.seq, t.coeff, t.est, deltat)

Arguments

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

Value

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


[Package tvmediation version 1.1.0 Index]