Transform a data set to a dataset appropriate for certain OpenBUGS models.
R2Bugsdat1w.data.frame(data, response, treatment, Intercept = FALSE)
a data.frame
a single character string, naming a numeric variable in data
a single character string, naming a factor variable in data
a single logical value, defining, whether an Intercept shall be used for the construction of the design matrix
a list, containing the elements
a list of variables appropriate for certain BUGS models
a vector of character strings, naming the parameters to save for a call to OpenBUGS
a vector of initial values for the parameters
the original data set
a single logical indicating whether an Intercept was used to parameterize the factor variable
For internal use.