A causal mediation framework for microbiome data with survival outcomes. An accelerated failure time model is used to estimate mediation effects for individual microbial mediators while adjusting for covariates. Microbiome mediators are modeled using a two-part marginal framework that accounts for excess zeros and non-zero relative abundances through a zero-inflated beta distribution.
The goal of AFTMicroMed is to ...
You can install the development version of AFTMicroMed from GitHub with:
# install.packages("pak")
pak::pak("24parke/AFTMicroMed")
This is a basic example which shows you how to solve a common problem:
library(AFTMicroMed)
## basic example code