Statalist The Stata Listserver


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

Re: st: single p-value for categorical variables and interactions


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: single p-value for categorical variables and interactions
Date   Wed, 15 Nov 2006 21:14:13 +0000 (GMT)

--- "Richardson, Kelly K." <[email protected]> wrote:
> I have 2 categorical variables: race (1=black 0=white) and
> segregation (1=low 2=medium 3=high). 
> Is it possible to get a single p-value for segregation and a single
> p-value for the interaction between race and segregation in addition
> to a p-value for each of the categories? 

Kelly:
yes, with the -test- command, see example:

*------------ begin example --------------
sysuse auto, clear
recode rep78 1/2=3
xi: reg price i.foreign*i.rep78
test _Irep78_4 = _Irep78_5 = 0
test _IforXrep_1_4 = _IforXrep_1_5 = 0
*------------- end example ---------------

HTH,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

Send instant messages to your online friends http://uk.messenger.yahoo.com 
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index