Usage
sarorderedprobit(formula, W, data, subset, ...)
sar_ordered_probit_mcmc(y, X, W, ndraw = 1000, burn.in = 100, thinning = 1,
prior=list(a1=1, a2=1, c=rep(0, ncol(X)), T=diag(ncol(X))*1e12, lflag = 0),
start = list(rho = 0.75, beta = rep(0, ncol(X)),
phi = c(-Inf, 0:(max(y)-1), Inf)),
m=10, computeMarginalEffects=TRUE, showProgress=FALSE)
Arguments
y
dependent variables. vector of zeros and ones
ndraw
number of MCMC iterations
burn.in
number of MCMC burn-in to be discarded
thinning
MCMC thinning factor, defaults to 1.
prior
A list of prior settings for
$\rho \sim Beta(a1,a2)$
and $\beta \sim N(c,T)$. Defaults to diffuse prior for beta.
start
list of start values
m
Number of burn-in samples in innermost Gibbs sampler. Defaults to 10.
computeMarginalEffects
Flag if marginal effects are calculated. Defaults to TRUE. Currently without effect.
showProgress
Flag if progress bar should be shown. Defaults to FALSE.
formula
an object of class "formula" (or one that can be coerced to that class): a symbolic description of the model to be fitted. data
an optional data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model.
If not found in data, the variables are taken from environment(formula), typically the e
subset
an optional vector specifying a subset of observations to be used in the fitting process.
...
additional arguments to be passed