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
help on stacking matricesHi, Stata gurus, this seems to be easy, once with right Mata commands. I have N matrices, same num…
Choice of regression modelMy dependent variable is interval but bounded in the interval 5 to 80. All the values are known with…
propensity score matchingI want to do a 1:2 propensity score matching. I am unable to find a source for this any help? …
2SLS with we use polynomial terms of birth cohort.Hello, I am trying to estimate a fuzzy RD. Fuzzy RD is equivalent to 2SLS (Hahn et al. 2001). So I …
Problem with bysort command as it is always showing not sorted!Dear Stata Members I would like to calculate the industry sales growth (isg) and following is my sam…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a combined graph
Post a Comment