tide.ci.zero.rho: Bootstrap samples of TIDE with zero correlation

Description Usage Arguments Value Author(s) References Examples

Description

Generate bootstrap samples of the total indirect effect (TIDE) when the correlation coefficient is zero

Usage

1
tide.ci.zero.rho(y, M, tr, x = NULL, w = NULL, n.boot=2000)

Arguments

y

Vector of continuous outcomes

M

Matrix of compositional data

tr

Vector of continuous or binary treatments

x

Matrix of covariates

w

Vector of weights on samples

n.boot

Number of bootstrap samples

Value

bootstrap samples of TIDE

Author(s)

Michael B. Sohn

Maintainer: Michael B. Sohn <msohn@mail.med.upenn.edu>

References

Sohn, M.B. and Li, H. (2017). Compositional Mediation Analysis for Microbiome Studies (AOAS: In revision)

Examples

1
2
3
4
5
6
7
8
# Load test data
data(ccmm_test_data);
outcome <- ccmm_test_data[,1];
treatment <- ccmm_test_data[,2];
mediators <- as.matrix(ccmm_test_data[,3:22]);
covariates <- as.matrix(ccmm_test_data[,23:24]);

cisa <- tide.ci.zero.rho(outcome, mediators, treatment, covariates, n.boot=200)

ccmm documentation built on May 2, 2019, 3:29 p.m.