Usage
zoib(model, data, n.response=1, joint = TRUE,
zero.inflation = TRUE, one.inflation = TRUE,
random = 0, EUID, link.mu = "logit", link.x0 = "logit",
link.x1 = "logit", prec.int = matrix(1e-3, n.response, 4),
prior.beta = matrix("DN", n.response, 4),
prec.DN = matrix(1e-3, n.response, 4),
lambda.L2 = matrix(1e-3, n.response, 4),
lambda.L1 = matrix(1e-3, n.response, 4),
lambda.ARD = matrix(1e-3, n.response, 4), prior.Sigma = "VC.unif",
scale.unif = 20,scale.halfcauchy = 20,
n.chain = 2, n.iter = 5000, n.burn =200, n.thin = 2, inits=NULL, seeds=NULL)Arguments
model
Symbolic description of the model in the format of formula, such as y ~ x, y1 | y2 ~ x1+x2,
or y1 ~ x | z. Refer to "details" for more information.
n.response
Number of response variables. Default is 1.
joint
Whether to jointly model multiple responses if n.response >=2. Default is TRUE.
zero.inflation
A vector that contains n.response values of TRUE or FALSE on whether each of the response variables has inflation at zero. Default is TRUE.
one.inflation
A vector that contains n.response values of TRUE or FALSE on whether each of the response variables has inflation at one. Default is TRUE.
random
Sepecifys which linear predictor(s) or link function(s) contain a random component. Default is 0 (no random component). Refer to "details" for more information.
EUID
Listing of the experimental unit ID in each row of the data set.
link.mu
Link function for the mean of the beta distribution piece of the zoib model. Choices are "logit" (default), "probit" and "cloglog".
link.x0
Link function for Pr(y=0). Choices are "logit" (default), "probit" and "cloglog".
link.x1
Link function for Pr(y=1 | y>0). Choices are "logit" (default), "probit" and "cloglog".
prec.int
Precision parameter of the prior distribution (diffuse normal) of the intercept in the linear predictor of each link function. Default is 0.001 in all 4 link functions for all response variables.
prior.beta
Prior choice for the regression coefficients other than the intercepts in each of the 4 link functions. Default is "diffuse normal" in all 4 link functions for all response variables. Refer to "details" for more information.
prec.DN
Precision parameters of the normal distribution if the diffuse normal prior is chosen as the prior distributions of the regression coefficients in all 4 linear predictors for all response variables. Default precision is 0.001.
lambda.L1
Scale parameter of the prior distributions of the regression coefficients in the linear predictors for all response variables if the L1-like prior is chosen. Refer to the Liu and Kong (2015) and Bae and Mallick (2004) for details.
lambda.L2
Scale parameter of the prior distributions of the regression coefficients in the linear predictors for all response variables if the L2-like prior is chosen. Refer to the Liu and Kong (2015) and Bae and Mallick (2004) for details.
lambda.ARD
Scale parameter in the prior distributions of the regression coefficients in the linear predictors for all response variables if the ARD prior is chosen. Refer to the Liu and Kong (2015) and Bae and Mallick (2004) for details.
prior.Sigma
Prior choice for the variance or the variance-covariance in the case of a single random variable and multiple random variables, respectively. The default is "VC.unif". When there is a single random variable, choose from "VC.unif" and "VC.halfcauchy". Refe
scale.unif
Upper bound of the uniform prior for the standard deviation of each random variable if prior.Sigma="VC.unif" is specified. Default is 20.
scale.halfcauchy
Scale parameter of the half-Cauchy prior for the standard deviation of each random variable if prior.Sigma="VC.halfCauchy" is specified. Default is 20.
n.chain
Number of Markov chains from which posterior samples will be drawn (>=1; default = 2).
n.iter
Number of iterations per chain in the MCMC sampling (default = 5000) before burning-in and thinning.
n.burn
Burning in period of the MCMC chains (default = 200).
n.thin
Thinning period of the MCMC chains after the burn-in (default = 5).
inits
optional specification of initial values for regression coefficients and variance/covariance parameters in the form of a list (see initialization below). If omitted, initial values will be generated automatically. Refer to "details" for more information.
seeds
a vector of dimension n.chain that contains seeds for the initial values and the random number generators of the MCMC chains, if users wish to make the output from the model reproducible.