plot_cw_ide: Plot sensitivity of the estimated total indirect effect

Description Usage Arguments Value Author(s) References Examples

View source: R/cmmb.R

Description

Plot sensitivity of the estimated total indirect effect between mediators and an outcome

Usage

1
plot_cw_ide(cmmb.output)

Arguments

cmmb.output

an output of the cmmb function

Value

It plots estimated component-wise products of path coefficients

Author(s)

Michael B. Sohn

Maintainer: Michael B. Sohn <michael_sohn@urmc.rochester.edu>

References

Sohn, M.B., Lu, J. and Li, H. (2021). A Compositional Mediation Model for Binary Outcome: Application to Microbiome Studies (Submitted)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# Load a simulated dataset
data(cmmb_demo_data)
# Run CMM for binary outcomes
rslt <- cmmb(Y=cmmb_demo_data$Y, M=cmmb_demo_data$M,
             tr=cmmb_demo_data$tr, X=cmmb_demo_data$X)
rslt
# Plot products of component-wise path coefficients
plot_cw_ide(rslt)

## End(Not run)

mbsohn/cmmb documentation built on Dec. 21, 2021, 3:56 p.m.