Description Usage Arguments Value Examples
OLS
is used to estimate mediated effects
(Baron and Kenny, 1986) in linear models using Ordinary Least Squares based methods.
Linear models are assumed for the conditional expectation of mediator given exposure and confounders,
and for the conditional expectation of outcome given mediator, exposure and confounders. As with the plmed
function,
the confounder set is the union terms in the
mediator.formula
, and outcome.formula
. Missing data behaviour is always na.action=na.omit
.
1 |
exposure.variable |
a character string naming the exposure variable of interest. |
mediator.formula |
an object of class |
outcome.formula |
an object of class |
data |
an optional data frame, list or environment
(or object coercible by |
An object of class plmed
with, Natural Direct Effect (NDE) and
Natural Indirect Effect (NIDE) estimates, as well as the effect of exposure on mediator (X_on_M)
and the effect of mediator on outcome (M_on_Y). Estimated standard errors, and
Wald based test statistics are also returned, as is the Likelihood Ratio (LR) based test statitic.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.