what is the difference between long and wide format data?
In wide format, categorical data is always grouped. You can think of it as a summary of long data. It is easier to read and interpret as compared to long format. In long vertical format, every row represents an observation belonging to a particular category.