Function to transform the data into a list, if there are not already
Listcheck(X, nv)A list with two components
Dataset in the right format: for a single group, a single matrix. For multiple groups, a list with an element for each group containing a matrix.
Number of subjects per group: NV for a single group and a vector for multiple groups.
object that should be checked
number of subjects per group