powered by
Fit zero-inflated poisson-gamma model via EM Algorithm
ZIPG_main( data, W, M, X, X_star, return_model = TRUE, pbWald_list = NULL, bWald_list = NULL )
A list of ZIPG fitted model. Use ZIPG_summary() for a quick look at the results.
Data.frame for covariates of interest
Count data
Sequencing depth, ZIPG use log(M) as offset by default
Formula of covariates of differential abundance
Formula of covariates of differential varibility
whether return full complete imfomation for fitted model
A list of arguments for parameteric bootstrap Wald test, B for bootstrap sample size, X0 and X_star0 for formula of covariates included in H0
A list of arguments for non-parameteric bootstrap Wald test, B for bootstrap sample size,
data(Dietary) dat = Dietary ZIPG_res <- ZIPG_main(data = dat$COV, X = ~ALC01+nutrPC1+nutrPC2, X_star = ~ ALC01, W = dat$OTU[,100], M = dat$M ) ZIPG_summary(ZIPG_res)
Run the code above in your browser using DataLab