Statalist


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

Re: st: Working with groups


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   stata list <statalist@hsphsun2.harvard.edu>, mmolina@uniroma3.it
Subject   Re: st: Working with groups
Date   Thu, 10 Apr 2008 17:37:21 +0100 (BST)

--- mmolina@uniroma3.it wrote:
> I have several regions and I have create region1 and region2, before
> doing what you suggest me...

So you have variables y x region1 and region2 and maybe other
varialbes.

I am assuming that region1 has value 1 if the person is from region 1
and 0 otherwise, and the same for region2.

reg y x if region1==1 | region2==1

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! For Good helps you make a difference  

http://uk.promotions.yahoo.com/forgood/
*
*   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