--- Rajesh Tharyan <[email protected]> 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/