Hi Everyone,
I am stuck at a problem but could not figure how to solve it. Below is an example of my dataset. Each row represents an observation (patients). The patients in the dataset may or may not have all the symptoms. Each presenting symptom is coded as a separate variable: facial_pain, hyposmia, anosmia headache etc. (0- Absent 1- Present).
I want to create a single bar graph with multiple bars wherein each bar represent one particular symptom and all these bars are displayed next to each other as multiple bars.
Thank you very much.
Regards
Pavan
* Example generated by -dataex-. To install: ssc install dataex
clear
input byte(face_pain hypos anosmia headache cough)
1 0 0 0 0
1 0 0 1 0
1 0 0 1 0
1 1 0 1 1
0 0 0 0 0
1 0 0 1 0
0 0 0 0 0
I am stuck at a problem but could not figure how to solve it. Below is an example of my dataset. Each row represents an observation (patients). The patients in the dataset may or may not have all the symptoms. Each presenting symptom is coded as a separate variable: facial_pain, hyposmia, anosmia headache etc. (0- Absent 1- Present).
I want to create a single bar graph with multiple bars wherein each bar represent one particular symptom and all these bars are displayed next to each other as multiple bars.
Thank you very much.
Regards
Pavan
* Example generated by -dataex-. To install: ssc install dataex
clear
input byte(face_pain hypos anosmia headache cough)
1 0 0 0 0
1 0 0 1 0
1 0 0 1 0
1 1 0 1 1
0 0 0 0 0
1 0 0 1 0
0 0 0 0 0
Comment