- model.u
A fitted model object for confounder. Can be of class 'lm',
'polr', 'bayespolr', 'glm', 'bayesglm', 'gam', 'rq', or 'survreg'.
- n.beta.u
Number of varying coefficient of treatment in the confounder
model. This number is adjusted as n.beta.u + 1 if n.beta.u is an even
number.
- model.m
A fitted model object for mediator. Can be of class 'lm',
'polr', 'bayespolr', 'glm', 'bayesglm', 'gam', 'rq', or 'survreg'.
- model.y
A fitted model object for outcome. Can be of class 'lm',
'polr', 'bayespolr', 'glm', 'bayesglm', 'gam', 'vglm', 'rq', 'survreg',
or 'zeroinfl'.
- sims
Number of Monte Carlo draws for quasi-Bayesian approximation.
- boot
A logical value. if 'FALSE' a quasi-Bayesian approximation is
used for confidence intervals; if 'TRUE' nonparametric bootstrap will be
used. Default is 'FALSE'.
- confounder
A character string indicating the name of the confounder
variable used in the models.
- treat
A character string indicating the name of the treatment
variable used in the models. The treatment can be either binary (integer
or a two-valued factor) or continuous (numeric).
- mediator
A character string indicating the name of the mediator
variable used in the models.
- covariates
A list or data frame containing values for a subset of the
pre-treatment covariates in 'model.m' and 'model.y'. If provided, the
function will return the estimates conditional on those covariate values.
Default is NULL.
- outcome
A character string indicating the name of the outcome
variable in `model.y'. Only necessary if 'model.y' is of class 'survreg';
otherwise ignored.Default is NULL.
- digits
integer indicating the number of decimal places to round
the values to be returned. Default is 3.
- xlab, ylab
Labels for x and y axes, as in plot
.
Default xlab = "Beta.u", ylab = "Effect".
- xlim, ylim
Ranges of x and y axes, as in plot
.
The default value, NULL, indicates that the range of the finite values to be
plotted should be used.
- main
A main title for the plot, as in plot
.
- type
A character string (length 1 vector) or vector of 1-character
strings indicating the type of plot for 3 columns of y, as in
plot
. Default is 'l' for lines.
- col
A vector of strings indicating the colors for 3 lines of y.
Default is ("black","black","black").
- pch
A vector of plotting characters or symbols, as in
plot
. Default is NULL.
- lty
A vector of line types, as in plot
. Default is
c(1,2,3).
- legend.x, legend.y
The x and y co-ordinates to be used to position
the legend, see x, y in legend
. Default legend.y = NULL.
- legend.inset
Inset distance(s) from the margins as a fraction of the
plot region when legend is placed by keyword, as inset
in
legend
. Default is 0.05.
- legend
A character or expression vector of 3 to appear in the
legend, as in legend
. Default is c("Direct Effect",
"Mediation Effect", "Total Effect")
- legend.horiz
A logical value. If TRUE, set the legend horizontally
Default is FALSE, which sets the legend vertically.