cmmb-package: Compositional Mediation Model for Binary Outcomes

Description Author(s) References Examples

Description

Estimate direct and indirect effects of treatment on binary outcomes transmitted through compositional mediators

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
12
13
## 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, ForSA=TRUE)
rslt$total
# Plot products of component-wise path coefficients
plot_cw_ide(rslt)
# Plot sensitivity of the estimated total indirect effect
plot_cmmb_sa(rslt)

## End(Not run)

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