Hi,
I'm struggling to get this right. I have 2 variables that I want to show on a single graph. Firstly, is % of patients who survive (currently variable is ynAlive, a binary outcome) and second is how fast they were defibrillated (DCCS, measured in whole minutes as an integer).
Ideally, the graph would show % on the y axis and minutes on the x axis. There would be two lines - line 1 showing survival % decreasing per minute increase in DCCS, and a second line showing currently what % of patients are defibrillated per minute.
graph bar (percent), over(DCCS) gives me the correct graph for the second part (although I want line not bar and when I specify line I get "linegraph_g.new (percent), over(DCCS): class member function not found"
I feel like this should be relatively simple but I just can't wrap my head around it.
Thanks all for your assistance.
Related Posts with Creating a combined graph
Transforming a Categorical Variable into Separate VariablesI am working with factory-year panel data wherein information about many variables (for e.g. wages, …
Destring non numeric variables after importing from ExcelHi everyone, I am encountering quite a basic problem, however cannot seem to find the right solutio…
Survival Analysis with Multiple IDHi, I am trying to do Survival (Duration) Analysis with multiple records per subject. Particularl…
Tobit - function returned errorHello Statalisters, I am investigating the effect of a health-information warning on the purchases …
How can I display the value of a scalar "labelling" it?Hi all A very quick question. How can I display the value of a scalar "labelling" it? I mean, I'd l…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a combined graph
Post a Comment