R2Bugsdat1w: For internal use

Description Usage Arguments Details Value

Description

Transform a data set to a dataset appropriate for certain OpenBUGS models.

Usage

1

Arguments

formula

a formula of the style response ~ treatment, where response is a numeric or integer variable, and treatment is a factor variable in data

data

a data.frame, containing the response- and treatment-variables in formula

Details

For internal use.

Value

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


BSagri documentation built on May 2, 2019, 8:29 a.m.

Related to R2Bugsdat1w in BSagri...