Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Twoway area graphs


From   Knag Anne-Christine <[email protected]>
To   <[email protected]>
Subject   Re: st: Twoway area graphs
Date   Tue, 03 Jul 2007 12:26:29 +0200

But how do I get it as 2*4 instead of 3*3?


On 7/3/07 11:49 AM, "Maarten buis" <[email protected]> wrote:

> --- Knag Anne-Christine <[email protected]> wrote:
>> twoway (area all dos, sort) (area dead dos, sort), by(experiment
>> treatment)
>> 
>> Experiment is either 1 or 2. Treatment is C, L, M, H, E. So the
>> groups are
>> 1C. 2C, 1L, 2L, 1M, 2M etc. There is no group 1H.
>> 
>> The syntax above gives me the 9 plots ordererd like this:
>> 
>> 1C, 1E, 1L
>> 1M, 2C, 2E
>> 2H, 2L, 2M
>> 
>> But what I want is :
>> 1C, 2C
>> 1L, 2L
>> 1M, 2M
>>   , 2H
>> 1E, 2E
>> 
>> Is this arrangement possible?
> 
> Yes, I would start with making a single variable which contains the
> allowed combinations (use -tostring- to transform experiment into a
> string variable, and create the newvariable with -gen newvar =
> experiment + treatment-) then use the holes option to create the hole.
> 
> Hope this helps,
> Maarten
> 
> 
> -----------------------------------------
> Maarten L. Buis
> Department of Social Research Methodology
> Vrije Universiteit Amsterdam
> Boelelaan 1081
> 1081 HV Amsterdam
> The Netherlands
> 
> visiting address:
> Buitenveldertselaan 3 (Metropolitan), room Z434
> 
> +31 20 5986715
> 
> http://home.fsw.vu.nl/m.buis/
> -----------------------------------------
> 
> 
>       ___________________________________________________________
> Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
> your free account today
> http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index