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]

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 18:25:43 +0000

Thanks Nick for the reply, I noticed your comments and as you said
over() requires one variable only and the command requires a comma. It
would be great if you can help me with another option or command that
can be used to graph S around the three T variables in one graph.

Many thanks in advance

Nahla

On 28 February 2013 18:20, Nick Cox <[email protected]> wrote:
> Nahla's error with -stripplot- (SSC) was twofold.
>
> stripplot S over(  T_1 T0 T1 )
>
> won't work in the first instance because -over()- is an option, and as
> Teodora indicates with her example you need a comma too.
>
> Even with a comma, that wouldn't work because -over()- requires a
> single variable name.
>
> Nick
>
> On Thu, Feb 28, 2013 at 5:19 PM, 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.
>
> Nahla Betelmal
>
>> 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);
>
> 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.
> *
> *   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/


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