grad_prop_med_yreg_linear {regmedint} | R Documentation |
Calculate the gradient of the proportion mediated for yreg linear.
Description
Calculate the gradient of the proportion mediated for yreg linear case.
Usage
grad_prop_med_yreg_linear(pnde, tnie)
Arguments
pnde |
A numeric vector of length one. Pure natural direct effect. |
tnie |
A numeric vector of length one. Total natural indirect effect. |
Value
A numeric vector of length two. Gradient of the proportion mediated with respect to pnde and tnie.
[Package regmedint version 1.0.1 Index]