Statalist


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

Re: st: comparing three gorups


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: comparing three gorups
Date   Sun, 7 Sep 2008 08:03:12 +0100 (BST)

--- Rajesh Tharyan <R.Tharyan@exeter.ac.uk> wrote:
> I have 3 groups of companies, each group characterised by 2 variables
> x and y, say groups A, B and c. What is the simplest way to test
> whether A is similar to B or C in terms of these two variables? 

The example below will work when x and y are, conditional on your
grouping variable, approximately normally distributed.

*---------- begin example ----------
sysuse auto, clear
recode rep78 1/2=3
xi: mvreg mpg trunk = i.rep78
testparm _I*
*----------- end example -----------

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/
-----------------------------------------


      
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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