I have a panel data set and one variable called pain level (which has 4 categories: no, slight, moderate and severe). If I directly write the code of "tab painlevel", Stata will tell me the N (overall obs.) in these 4 categroies. However, if I want to know n (group obs.) in each pain level, what code should I choose?
Thanks!