## knitr configuration: http://yihui.name/knitr/options#chunk_options library(knitr) showMessage <- FALSE showWarning <- TRUE set_alias(w = "fig.width", h = "fig.height", res = "results") opts_chunk$set(comment = "##", error= TRUE, warning = showWarning, message = showMessage, tidy = FALSE, cache = FALSE, echo = TRUE, fig.width = 7, fig.height = 7, fig.path = "man/figures")
The bodies of the following functions contain the R implementation of the formulas in V2015. Although many models are covered, there are only four patterns. See the package top page for further references. The code seen here is compacted and lacks the comments. For more redable code, please refer to the Github repo and search for the function names without the preceding regmedint:::
. For the type-set mathematical expressions and LaTeX source, please see the supplement.
These functions are only used in the setting where both the mediator model and the outcome model are linear regression.
regmedint:::calc_myreg_mreg_linear_yreg_linear_est
regmedint:::calc_myreg_mreg_linear_yreg_linear_se
These functions are used in all cases where the mediator model is linear regression and the outcome model is any one of the non-linear models.
regmedint:::calc_myreg_mreg_linear_yreg_logistic_est
regmedint:::calc_myreg_mreg_linear_yreg_logistic_se
These functions are only used in the setting where the mediator model is logistic regression and the outcome model is non-linear regression.
regmedint:::calc_myreg_mreg_logistic_yreg_linear_est
regmedint:::calc_myreg_mreg_logistic_yreg_linear_se
These functions are used in all cases where the mediator model is logistic regression and the outcome model is any one of the non-linear models.
regmedint:::calc_myreg_mreg_logistic_yreg_logistic_est
regmedint:::calc_myreg_mreg_logistic_yreg_logistic_se
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.