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]
Re: st: graph with indicator variables
From
Nahla Betelmal <[email protected]>
To
[email protected]
Subject
Re: st: graph with indicator variables
Date
Thu, 28 Feb 2013 17:42:18 +0000
Thanks again, but I want to produce one graph for S, I want to show
that S increases sharply in T-1 relative to T0 and T+1. I have seen
such graph in a journal paper, so it has been done, and I assume there
is a command in Stata to do it. the question is which one? I would
appreciate it highly if anyone help please.
Many thanks
Nahla
On 28 February 2013 17:19, Tsankova, Teodora <[email protected]> wrote:
> 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: [email protected]
> [mailto:[email protected]] On Behalf Of Nahla
> Betelmal
> Sent: 28 February 2013 17:12
> To: [email protected]
> 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 <[email protected]> wrote:
>> 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/
> *
> * 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/