Usage
fitcomp(data.v, data.x, n.formula, v.formula, l.bound = 1,
n.sample = 100, burn = 0, thin = 1, init = NULL)
Arguments
data.v
Matrix of compositional data: rows for units and columns for components. Rows must add up to 1; if not, they are automatically rescaled. NA values turned into 0 automatically. Ordering done automatically.
data.x
Data frame with covariates, missing values not allowed.
n.formula
formula for the number of components: e.g., ~ x1 + x2 + factor(z).
v.formula
formula for the size of components: e.g., ~ x1 + x2.
l.bound
lower bound for the negative binomial regression; must be greater or equal to 1; default = 1.
n.sample
number of samples you want to have after burn-in and thinning; default 100
burn
number of burn-in samples; default 0
thin
thinning of the MCMC chain; default 1
init
initial parameters; not required