The LDM package implements the Linear Decomposition Model (Hu and Satten 2020), which provides a single analysis path that includes global tests of any effect of the microbiome, tests of the effects of individual OTUs (operational taxonomic units) or ASVs (amplicon sequence variants) while accounting for multiple testing by controlling the false discovery rate (FDR), and a connection to distance-based ordination. It accommodates multiple covariates (e.g., clinical outcomes, environmental factors, treatment groups), either continuous or discrete (with >= levels), as well as interaction terms to be tested either singly or in combination, allows for adjustment of confounding covariates, and uses permutation-based p-values that can control for clustered data (e.g., repeated measurements on the same individual). It gives results for both the frequency (i.e., relative abundance) and arcsine-root-transformed frequency data, and can give an ``omnibus" test that combines results from analyses conducted on the two scales. In follow-up papers, we extended the LDM to test association with microbiome data at the presence-absence scale (Hu et al. 2021), to analyze matched sets of samples (Zhu et al. 2020), to test microbiome associations with censored survival times (Hu et al. 2022), to test mediation effects of the microbiome (LDM-med) (Yue and Hu 2021), and to perform compositional analysis by fitting linear models to centered-log-ratio-transformed taxa count data (Hu and Satten 2023). Because LDM applied to relative abundance data works well when associated taxa are abundant and LDM applied to presence-absence data works well when associated taxa are relatively rare, we further developed another omnibus test, LDM-omni3 (Zhu et al., 2022); LDM-omni3 allows simultaneous consideration of data at the three taxon scales (i.e., relative abundance, arcsin-root transformed relative-abundance, and presence-absence), thus offering optimal power across scenarios with different association mechanisms.
Changes in Version 2.1
Changes in Version 3.0
Changes in Version 4.0
Changes in Version 5.0
Changes in Version 6.0
To install the package, download (preferrably the latest version of) the package from this site to a local drive and install and load the package in R:
install.packages("LDM_6.0.tar.gz", repos=NULL)
library(LDM)