Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down at the end of May, 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 16:54:28 -0000 |

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/

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

- Prev by Date:
**Re: st: Zero-inflated negative binomial panel model** - Next by Date:
**Re: st: graph with indicator variables** - Previous by thread:
**st: graph with indicator variables** - Next by thread:
**Re: st: graph with indicator variables** - Index(es):