Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: easiest way to get chi-square test


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: easiest way to get chi-square test
Date   Tue, 22 Dec 2009 23:17:32 +0000 (GMT)

--- On Tue, 22/12/09, B Web wrote:
> Make believe data:
> Group 1:
> Asians: 78%
> Pacific Islander: 65%
> White: 54%
> African American: 53%
> 
> Group 2:
> Asians: 77%
> Pacific Islander: 64%
> White: 53%
> African American: 52%
> Do the groups differ with respect to ethnicity
> percentages?
> My data are continuous counts or percents  right now:

Sounds like either -dirifit- or -fmlogit- with only one
explanatory variable, and then test the constraint that
that dummy variable is zero in all equations. You can
download them by typing in Stata either 
-ssc install dirifit- or -ssc install fmlogit-.

*------------------------ begin example -------------------------------
use http://fmwww.bc.edu/repec/bocode/c/citybudget.dta, clear
fmlogit governing safety education recreation social urbanplanning, ///
    eta(noleft)
testparm noleft
*------------------------ end example ---------------------------------

-- Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


      

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