Learn R Programming

R2BayesX (version 0.1-2)

parse.bayesx.input: Parse BayesX Input

Description

Funtion to parse bayesx input parameters which are then send to write.bayesx.input.

Usage

parse.bayesx.input(formula, data, weights = NULL, 
  subset = NULL, offset = NULL, na.action = na.fail, 
  contrasts = NULL, control = bayesx.control(...), ...)

Arguments

formula
symbolic description of the model (of type y ~ x). For more details see bayesx and sx.
data
a data.frame or list containing the model response variable and covariates required by the formula. By default the variables are taken from e
weights
prior weights on the data.
subset
an optional vector specifying a subset of observations to be used in the fitting process.
offset
can be used to supply a model offset for use in fitting.
na.action
a function which indicates what should happen when the data contain NA's.
contrasts
an optional list. See the contrasts.arg of model.matrix.default.
control
specify several global control parameters for bayesx, see bayesx.control.
...
arguments passed to bayesx.control.

Value

Examples

Run this code
parse.bayesx.input(y ~ x1 + sx(x2), data = "")

Run the code above in your browser using DataLab