Usage
tglm.fit(y, X, iter = 1e+05, thin = max(1, round(iter/2000)), burnin = 0.5, method = "logistic", df = 1, slope.scale = 2.5, intercept.scale = 10, save.latent = FALSE, center.binary = TRUE, scale.continuous = TRUE, beta.original = TRUE, track.time = TRUE, show.summary = TRUE)
Arguments
y
a numerical vector of length $n$. Binary responses.
X
an $n$ by $p$ matrix. Design matrix, not including the intercept.
iter
total number of iterations of MCMC.
thin
thinning; save one iteration in every thin
number of iterations.
burnin
ratio between number of burnin iterations and total number of iterations.
method
"logistic"
for logistic regression, or "probit"
for probit regression.
df
degree freedom of the independent Student-t priors on both intercept and slopes.
If Inf
, use independent normal priors.
slope.scale
a scalar or a vector of length $p$.
The scale (or standard deviation) parameter of the Student-t (or normal) priors on slopes.
intercept.scale
the scale (or sd) parameter of the Student-t (or normal) prior on the intercept.
save.latent
logical, indicating whether to save the MCMC samples for the latent variable $z$.
Since latent variable is of length $n$, it takes a lot of space when n is large.
center.binary
logical, indicating whether to center binary predictors.
scale.continuous
logical, indicating whether to center and rescale the non-binary predictors.
beta.original
logical, indicating whether to post-process the posterior samples of beta
to the orginal scale. This is only meaningful if
predictors are centered/rescaled in the pre-processing step.
track.time
logical, indicating whether to show process time.
show.summary
logical, indicating whether to show summary of posterior inferences.