Function to prepare data set for multi-state modeling in long format from data set in wide format.
Useful links