I'm reading in the topic of causal mediation and would like to apply it to a case with all continuous variables, treatment mediator interaction, and assuming linearity. I'd like to calculate the Natural Indirect (NIE) and Natural Direct Effect (NDE). Here is my current understanding from what I read here. Having the following models with Treatment T, Mediator M, target Y and controls Cm and Cy as shown in the following DAG:
mediation model: $M = a_0 + a_1 * T + a_2 * C_m + e_m$
outcome model: $Y = x_0 + x_1 * T + x_2 * M + x_3 * T * M + x_4 * C_y + e_y$
we can estimate the 2 effects the following way:
$NDE = (x_1 + x_3 * (a_0 + a_1 * T^* + a_2 * C_m)) * (T-T^*)$
$NIE = (a_1 * (x_2 + x_3 * T)) * (T-T^*)$
What I don't really understand is $T$ and $T^*$ in the continuous case. My approach would be to loop through a reasonable range of values of $T$ and and have $T = T^* + 1$ and than plot the results as a line plot as the range of effects depending of the treatment level. So the lines would basically have the following lines:
$NDE = x_1 + x_3 * (a_0 + a_1 * T + a_2 * C_m)$
$NIE = a_1 * (x_2 + x_3 * (T+1))$
Does that make sense or am I missing a specific way to cope with continuous treatment?