grad_prop_med_yreg_logistic: Calculate the gradient of the proportion mediated for yreg...

grad_prop_med_yreg_logisticR Documentation

Calculate the gradient of the proportion mediated for yreg logistic.

Description

Calculate the gradient of the proportion mediated for yreg logistic case.

Usage

grad_prop_med_yreg_logistic(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.


regmedint documentation built on April 7, 2022, 1:17 a.m.