I have a dataset with some observations e.g. number of days a patient had the influenca and different symptoms (headache, fever, feeling sick, etc.). Now, I want to create a table that has the number of participants with each symptom on each day.
For each symptom I created a counting variable that counts the number of patients suffering from each symptom. Now, I want to but the data into a table. Right now I am using the tabdisp-command, i.e.
Code:
tabdisp Day_of_Influenca, cell(symp1 symp2 symp3 symp4 symp5).
Does anyone know how to deal with this kind of problem?
I'm relatively new to stata, so any help would be greatly appreciated.
Kind regards
Daniel
0 Response to Create a table with an arbitary number of columns/variables
Post a Comment