Usage
GibbsBvs(formula, fixed.cov = c("Intercept"), data, prior.betas = "Robust", prior.models = "Constant", n.iter=1000, init.model = "Full", n.burnin = 50, n.thin=1, time.test = TRUE, priorprobs=NULL, seed = runif(1,0,16091956))
Arguments
formula
Formula defining the most complex regression model in the analysis. See details.
fixed.cov
A character vector with the names of the covariates that will be considered as fixed (no variable selection over these). This argument provides an implicit definition of the simplest model considered. Default is "Intercept". Use NULL if selection should be performed over all the variables defined by formula
data
data frame containing the data.
prior.betas
Prior distribution for regression parameters within each model. Possible choices include "Robust", "Liangetal", "gZellner", "ZellnerSiow" and "FLS" (see details).
prior.models
Prior distribution over the model space. Possible choices are "Constant", "ScottBerger" and "User" (see details).
n.iter
The total number of iterations performed after the burn in process.
init.model
The model at which the simulation process starts. Options include "Null" (the model only with the covariates specified in fixed.cov
), "Full" (the model defined by formula
), "Random" (a randomly selected model) and a vector with p (the number of covariates to select from) zeros and ones defining a model.
n.burnin
Length of burn in, i.e. number of iterations to discard at the beginning.
n.thin
Thinning rate. Must be a positive integer. Set 'n.thin' > 1 to save memory and computation time if 'n.iter' is large. Default is 1. This parameter jointly with n.iter
sets the number of simulations kept and used to construct the estimates so is important to keep in mind that a large value for 'n.thin' can reduce the precision of the results.
time.test
If TRUE and the number of variables is large (>=21) a preliminary test to estimate computational time is performed.
priorprobs
A p+1 dimensional vector defining the prior probabilities Pr(M_i) (should be used in the case where prior.models
="User"; see the details in Bvs
.) seed
A seed to initialize the random number generator