Mediate_contY_contM_bootci {mediateP} | R Documentation |
Using bootstrap to calculate the confidence intervals in the scenario of continuous outcome and continuous mediator.
Description
Using bootstrap to calculate the confidence intervals in the scenario of continuous outcome and continuous mediator.
Usage
Mediate_contY_contM_bootci(
data,
outcome = "Y",
mediator = "M",
exposure = "X",
covariateY = c("X1", "X2"),
covariateM = c("X1", "X2"),
x0 = 0,
x1 = 1,
R = 1000
)
Arguments
data |
A dataset. |
outcome |
The outcome variable. |
mediator |
The mediator variable. |
exposure |
The exposure variable. |
covariateY |
A vector of confounders in the outcome regression. |
covariateM |
A vector of confounders in the mediator regression. |
x0 |
The baseline exposure level. |
x1 |
The new exposure level. |
R |
The number of replications. |
Value
The 95
[Package mediateP version 0.2.0 Index]