Transform a data set to a dataset appropriate for certain OpenBUGS models.
R2Bugsdat1w(formula, data)
a formula of the style response ~ treatment
, where response
is a numeric or integer variable, and treatment
is a factor variable in data
a data.frame, containing the response
- and treatment
-variables in formula
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.