Hello all. I am a physician conducting health outcomes research and am new to STATA. Have learned a lot silently browsing the forum but have hit a roadblock and have a question of my own.
I would like to plot the frequency of post op sepsis in patients, based on the type of wound class they had during surgery. For example, wound is categorized as: Clean, Contaminated, and Dirty--a categorical variable.
Incidence of post operative sepsis as a complication is coded in my database as 1-No, 2-Yes.
. tab postopsepsis woundcls
This gives me a nice table of the frequency of sepsis based on each wound class.
However, the command: . histogram postopsepsis, by(woundcls) produces the following chart:
When what I want is a single graph histogram telling me the frequency of positive cases of sepsis across operative wound class.
Any thoughts? Thanks for your help!
I would like to plot the frequency of post op sepsis in patients, based on the type of wound class they had during surgery. For example, wound is categorized as: Clean, Contaminated, and Dirty--a categorical variable.
Incidence of post operative sepsis as a complication is coded in my database as 1-No, 2-Yes.
. tab postopsepsis woundcls
This gives me a nice table of the frequency of sepsis based on each wound class.
However, the command: . histogram postopsepsis, by(woundcls) produces the following chart:
When what I want is a single graph histogram telling me the frequency of positive cases of sepsis across operative wound class.
Any thoughts? Thanks for your help!
Comment