Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

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

From |
"Tsankova, Teodora" <TsankovT@ebrd.com> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: graph with indicator variables |

Date |
Thu, 28 Feb 2013 17:19:51 -0000 |

What your command would basically do is produce three separate graphs of S. What I did with stripplot is make a simple time trend of events so my command was: Stripplot date, over(village) This way I got time trends for events separate for every village (where I knew what the three events represented for example). Hope this helps but what you are trying to do might be different as well. Stripplot allows to graph a single variable so in my case I have no y. You might try with tsline as well for plotting time series data. -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nahla Betelmal Sent: 28 February 2013 17:12 To: statalist@hsphsun2.harvard.edu Subject: Re: st: graph with indicator variables Thanks Tsankova , but can you please give me more details. I tried stripplot but I got an error message as below. stripplot S over( T_1 T0 T1 ) time-series operators not allowed r(101); Thanks again Nahla On 28 February 2013 16:54, Tsankova, Teodora <TsankovT@ebrd.com> wrote: > I have actually done something similar or a time trend for event using > the -stripplot- command. > > -----Original Message----- > From: owner-statalist@hsphsun2.harvard.edu > [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nahla > Betelmal > Sent: 28 February 2013 16:50 > To: statalist@hsphsun2.harvard.edu > 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/ * * 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/ * * 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/

**Follow-Ups**:**Re: st: graph with indicator variables***From:*Nick Cox <njcoxstata@gmail.com>

**Re: st: graph with indicator variables***From:*Nahla Betelmal <nahlaib@gmail.com>

- Prev by Date:
**st: Linking a patient file with an event file** - Next by Date:
**st: Ksmirnov one-sided test interpretation** - Previous by thread:
**Re: st: graph with indicator variables** - Next by thread:
**Re: st: graph with indicator variables** - Index(es):