Bookmark and Share

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]

Re: st: graph with indicator variables


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: graph with indicator variables
Date   Thu, 28 Feb 2013 18:20:48 +0000

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 <TsankovT@ebrd.com> 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 <TsankovT@ebrd.com> 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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index