The datalist package provides two main functions: the convert_data
function to transform
a data set (data.frame or list) into a list of integer and numeric
vectors, matrices and arrays
for import into JAGS, WinBUGS and OpenBUGS;
and the generate_data
function to produce a data.frame that can
be used to generate model predictions for
particular variables with the other variables in the model held constant.
The datalist package also provides the is_convertible_data
function
to test whether a data set is suitable for
transformation into a list of integer and numeric vectors,
matrices and arrays. Its sister functions is_convertible_data_list
and
is_convertible_data_frame
also test the type of the data set.
convert_data
,
generate_data
and is_convertible_data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.