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: graph with indicator variables


From   "Tsankova, Teodora" <[email protected]>
To   <[email protected]>
Subject   st: graph with indicator variables
Date   Thu, 28 Feb 2013 16:54:28 -0000

I have actually done something similar or a time trend for event using
the -stripplot- command. 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Nahla
Betelmal
Sent: 28 February 2013 16:50
To: [email protected]
Subject: st: graph with indicator variables

Dear Statalist,

I want to graph the trend of a numerical variable S around a certain
event for different  firms. For each firm the event occurs in a
different year, so I generated an indicator  variable equal 1 for the
event year in each firm and called it T0 which could be year 2003 for
firm 1 but year 2008 for firm 2 , etc. I also generated an indicator
variable for year T-1 which represents the year preceding the event year
for each firm (e.g. would be year 2002 for firm 1, but 2007 for firm 2 )
, and variable year T+1 which represents the years following the event
year for each firm ( would be year 2004, but 2009 for firm 2, etc.). I
used lag and forward functions for T-1 and T+1.


How can graph the trend of variable S around along variables : T0, T-1,
T+1. Is it possible to have  the S variable is on the Y-axis while
X-axis represents T0, T-1, and T+1 in one graph, and how?

Many thanks

Nahla Betelmal
*
*   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/

EBRD SECURITY NOTICE
This email has been virus scanned

______________________________________________________________
This message may contain privileged information. If you have received this message by mistake, please keep it confidential and return it to the sender. 
Although we have taken steps to minimise the risk of transmitting software viruses, the EBRD accepts no liability for any loss or damage caused by computer viruses and would advise you to carry out your own virus checks. 
The contents of this e-mail do not necessarily represent the views of the EBRD.



*
*   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