Funtion to parse bayesx input parameters which are then send to
write.bayesx.input.
parse.bayesx.input(formula, data, weights = NULL,
subset = NULL, offset = NULL, na.action = na.fail,
contrasts = NULL, control = bayesx.control(...), ...)Returns a list of class "bayesx.input" which is send to write.bayesx.input
for processing within bayesx.
symbolic description of the model (of type y ~ x). For more details see
bayesx and sx.
a data.frame or list containing the model response
variable and covariates required by the formula. By default the variables are taken from
environment(formula): typically the environment from which bayesx is called.
Argument data may also be a character string defining the directory the data is stored,
where the first row in the data set must contain the variable names and columns should be tab
separated.
prior weights on the data.
an optional vector specifying a subset of observations to be used in the fitting process.
can be used to supply a model offset for use in fitting.
a function which indicates what should happen when the data contain NA's.
an optional list. See the contrasts.arg of
model.matrix.default.
specify several global control parameters for bayesx, see
bayesx.control.
arguments passed to bayesx.control.
Nikolaus Umlauf, Thomas Kneib, Stefan Lang, Achim Zeileis.
parse.bayesx.input(y ~ x1 + sx(x2), data = "")
Run the code above in your browser using DataLab