Rdocumentation
powered by
Learn R Programming
MMDai (version 0.1.0)
MatrixToArray: Matrix To Array
Description
If the number of trials m = 1, the observed dataset may be a matrix format. This function transforms observed dataset into array format, which is used in DPMCM package
Usage
MatrixToArray(data_m, d)
Arguments
data_m
- a matrix format of observed dataset
d
- number of choices
Value
data_a - an array format of observed dataset