Usage
mnlm(counts, covars, normalize=FALSE, lambda=NULL, start=NULL,
tol=0.1, tmax=1000, delta=1, dmin=0, verb=TRUE)Arguments
counts
A matrix of multinomial response counts in ncol(counts) categories
for nrow(counts) individuals/observations.
covars
A matrix of ncol(covars) covariate values for each of the nrow(counts) observations.
This does not include the intercept, which is ALWAYS added in the design matrix.
normalize
Whether or not to normalize the covariate matrix to have mean zero and variance one.
lambda
Either a single fixed value, or a vector of length 3 giving initial lambda followed
by gamma prior shape and rate parameters
(e.g., c(init=sqrt(2), shape=2, rate=2) ). Here, lambda (>0) is a joint
scale parameter for the Laplace pri
start
An initial guess for the full ncol(counts) by ncol(covars)+1
matrix of regression coefficients. The first row (usually set to zero) corresponds to
our "null" category and is not updated during the model fit.
Under
tol
Optimization convergence tolerance for the improvement on the
un-normalized negative log posterior over a single full parameter sweep.
tmax
The maximum number of optimization iterations.
delta
An initial step size for the least upper bound approximation to parameter information;
implies a starting trust region of 2*delta.
dmin
Minimum trust region delta.
verb
Level of print-statement output. TRUE prints some initial info
and updates every iteration.