bbdml | R Documentation |
Maximum Likelihood for the Beta-binomial Distribution
bbdml(
formula,
phi.formula,
data,
link = "logit",
phi.link = "logit",
method = "trust",
control = list(maxit = 1000, reltol = 1e-14),
numerical = FALSE,
nstart = 1,
inits = NULL,
allow_noninteger = FALSE,
robust = FALSE,
...
)
formula |
an object of class |
phi.formula |
an object of class |
data |
a data frame or |
link |
link function for abundance covariates, defaults to |
phi.link |
link function for dispersion covariates, defaults to |
method |
optimization method, defaults to |
control |
optimization control parameters (see |
numerical |
Boolean. Defaults to |
nstart |
Integer. Defaults to |
inits |
Optional initializations as rows of a matrix. Defaults to |
allow_noninteger |
Boolean. Defaults to |
robust |
Should robust standard errors be returned? If not, model-based standard arras are used. Logical, defaults to |
... |
Optional additional arguments for |
An object of class bbdml
.
# data frame example
data(soil_phylum_small_otu1)
bbdml(formula = cbind(W, M - W) ~ DayAmdmt,
phi.formula = ~ DayAmdmt,
data = soil_phylum_small_otu1)
# phyloseq example (only run this if you have phyloseq installed)
## Not run:
data(soil_phylum_small_sample)
data(soil_phylum_small_otu)
data_phylo <- phyloseq::phyloseq(phyloseq::sample_data(soil_phylum_small_sample),
phyloseq::otu_table(soil_phylum_small_otu, taxa_are_rows = TRUE))
bbdml(formula = Proteobacteria ~ DayAmdmt,
phi.formula = ~ DayAmdmt,
data = data_phylo)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.