Learn R Programming

R2BayesX (version 1.1-5)

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(...), ...)

Value

Returns a list of class "bayesx.input" which is send to write.bayesx.input

for processing within bayesx.

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 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.

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.

Author

Nikolaus Umlauf, Thomas Kneib, Stefan Lang, Achim Zeileis.

Examples

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

Run the code above in your browser using DataLab