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

Re: st: comparing three gorups

From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: comparing three gorups
Date   Sun, 7 Sep 2008 08:03:12 +0100 (BST)

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

*   For searches and help try:

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