Statalist


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

Re: st: Twoway area graphs


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Twoway area graphs
Date   Tue, 3 Jul 2007 10:49:02 +0100 (BST)

--- Knag Anne-Christine <anne-christine.knag@imr.no> 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/



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