Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Twoway graph question


From   Rohit Sonika <[email protected]>
To   Statalist <[email protected]>
Subject   st: Twoway graph question
Date   Tue, 26 Mar 2013 16:41:02 +0000

Hi Statalist,

I have a query concerning graph based on three variables. The variables I am using are as follows:

timetoev1: continuous variable counting a time to or from event 1.

timetoev2: continuous variable counting a time to or from event 2.

return: variable of stock return during the event time in question.

Here is my question: I am able to graph return with respect to each event independently as follows:

twoway bar return timetoev1
twoway bar return timetoev2

However, given that both the event variables are in event time, I would like to see an overall of returns around the two event variables in a single graph with event time in x-axis and returns around each event in y-axis (hence two bars for each event time). Is there a convenient way to accomplish this?

Thanks a lot for your help.

Best,
Rohit
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index