summary_modmed {moderate.mediation} | R Documentation |
Summarizing Output for Causal Moderated Mediation Analysis
Description
'summary_modmed' is used to report from causal moderated mediation analysis. Alternatively, 'summary' can also be used to generate the same output.
Usage
summary_modmed(object, ...)
Arguments
object |
output from |
... |
additional arguments affecting the summary produced. |
Value
modmed
returns causal moderated mediation analysis results. The summary_modmed
function provides summary tables of the results.
Author(s)
Xu Qin and Lijuan Wang
References
Qin, X., & Wang, L. (2023). Causal moderated mediation analysis: Methods and software
Examples
data(newws)
modmed.results = modmed(data = newws, treatment = "treat", mediator = "emp",
outcome = "depression", covariates.disc = c("emp_prior", "nevmar",
"hispanic", "nohsdip"), covariates.cont = c("workpref", "attitude",
"depress_prior"), moderators.disc = "CHCNT", moderators.cont = "ADCPC",
m.model = list(intercept = c("ADCPC", "CHCNT"), treatment = c("ADCPC",
"CHCNT"), emp_prior = NULL, nevmar = NULL, hispanic = NULL,
nohsdip = NULL, workpref = NULL, attitude = NULL, depress_prior = NULL),
y.model = list(intercept = c("ADCPC", "CHCNT"), treatment = c("ADCPC",
"CHCNT"), mediator = c("ADCPC", "CHCNT"), tm = c("ADCPC",
"CHCNT"), emp_prior = NULL, nevmar = NULL, hispanic = NULL,
nohsdip = NULL, workpref = NULL, attitude = NULL, depress_prior = NULL),
comp.mod.disc.values = 3, ref.mod.disc.values = 2, comp.mod.cont.values = 5050,
ref.mod.cont.values = 5050, m.scale = "binary", y.scale = "continuous",
seed = 1)
summary_modmed(modmed.results)
summary(modmed.results)
[Package moderate.mediation version 0.0.10 Index]