R2Bugsdat1w {BSagri} | R Documentation |
Transform a data set to a dataset appropriate for certain OpenBUGS models.
R2Bugsdat1w(formula, data)
formula |
a formula of the style |
data |
a data.frame, containing the |
For internal use.
a list, containing the elements
bugsdat |
a list of variables appropriate for certain BUGS models |
parameters |
a vector of character strings, naming the parameters to save for a call to OpenBUGS |
inits |
a vector of initial values for the parameters |
data |
the original data set |
Intercept |
a single logical indicating whether an Intercept was used to parameterize the factor variable |