Takes a data frame and return the lists required for muliclass_reg()
to work
data_to_lists(data, class_var = "class", y_var = "y")
data frame with (at least) all the variables in the formula as well as the class identifier variable
the name of the class variable in the data frame
the name of the dependent variable in the data frame
A list with the following components
list of size \(K\). Its kth entry is a vector of size \(n_k\)
list of size \(K\). Its kth entry is a matrix of size \(n_{k} \times p\)