Usage
zoib(model, data, zero.inflation = TRUE, one.inflation = TRUE, joint = TRUE,
random = 0, EUID, link.mu = "logit", link.x0 = "logit", link.x1 = "logit",
prior.beta = rep("DN",4), prec.int = 0.001, prec.DN = 0.001, lambda.L2 = 0.001,
lambda.L1 = 0.001, lambda.ARD = 0.001, prior.Sigma = "VC.halft", scale.unif = 20,
scale.halft = 20, n.chain = 2, n.iter = 5000, n.burn =200, n.thin = 2)Arguments
model
Symbolic description of the model in the format of formula, such as y ~ x, y1|y2 ~ x1+x2, or y1 ~ x | z
data
Data to be analyzed; arguments controlling formula processing via model.frame.
zero.inflation
A vector of dimensional q (the number of response variables) that contains q values of TRUE or FALSE on whether each of the response varaible has inflation at zero.
one.inflation
A vector of dimensional q (the number of response variables) that contains q values of TRUE or FALSE on whether each of the response varaible has inflation at one.
joint
Whether to jointly model response variables if q>=2. Default is FALSE.
random
Whether the zoib model has a random component and, if so, which linear predictor. Default is 0 (no random componen).
EUID
Listing of the the experimental unit ID for each row of the data set.
link.mu
Link function for the mean of the beta 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). Choices are "logit" (default), "probit" and "cloglog".
prior.beta
Prior choice for the regression coefficients other than the intercepts in each of the 4 link functions (a vector of dim = 4). Default is rep("DN",4) (DN stands for "diffuse normal"). Refer to "details" for more infomration.
prec.int
Precision parameter of the prior distributions (diffuse normal) of the intercepts in the linear predictors. Default is 0.001.
prec.DN
Precision parameter of the normal distribution if the diffuse normal is chosen as the prior distributions of the regression coefficients in the linear predictors. Default precision is 0.001.
lambda.L1
Scale parameter of the prior distributions of the regression coefficients in the linear predictors if the L1-like prior is chosen. Refer to the Liu and Kong (2014) and Bae and Mallick (2004) for details.
lambda.L2
Scale parameter of the prior distributions of the regression coefficients in the linear predictors if the L2-like prior is chosen. Refer to the Liu and Kong (2014) and Bae and Mallick (2004) for details.
lambda.ARD
Scale parameter in the prior distributions of the regression coefficients in the linear predictors if the ARD prior is chosen. Refer to the Liu and Kong (2014) and Bae and Mallick (2004) for details.
prior.Sigma
Prior choice for the variance (if there is a single random variable) or the covariance structure (if there are mutliple random varibales) of the random variables. The default is "VC.halft". When there is a single random variable, choose from "VC.unif" an
scale.unif
Upper bound of the uniform distribution as the prior for the standard deviation of each random variable (default = 20).
scale.halft
Scale parameter of the half-Cauchy distribution as the prior for the standard deviation of eachrandom variable (default = 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).
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).