Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: chi2 goodness-of-fit test


From   Frank Gallo <[email protected]>
To   statalist <[email protected]>
Subject   Re: st: chi2 goodness-of-fit test
Date   Fri, 23 Jul 2010 16:54:55 -0400

Thank you all for your answers, which helped.

On Fri, Jul 23, 2010 at 8:57 AM, Nick Cox <[email protected]> wrote:
> Noting that -csgof- (Michael N. Mitchell, UCLA) does not allow -if-, the
> list of possibilities under this heading includes
>
> -mgof- (Ben Jann, SJ)
>
> SJ-8-2  st0142  . Multinomial GOF: Large-sample svy & small-sample exact
> tests
>        (help mgof if installed)  . . . . . . . . . . . . . . . . . .
> B. Jann
>        Q2/08   SJ 8(2):147--169
>        computes distributional tests for discrete (categorical,
>        multinomial) variables and supports large-sample tests for
>        complex survey designs and exact tests for small samples
>
> -chitest-, -chitesti- from -tab_chi- (NJC, SSC)
>
> -cagof- in Steve's posting looks like a typo for -csgof-. I'd cavil at
> the description in -csgof- that it's a test for comparing percentages.
> It's a test for comparing frequencies, not quite the same thing.
>
> Nick
> [email protected]
>
> Steven Samuels
>
> As asked by the FAQ, please give the source of all non-official commands
>
> The following will work.
> ***************
> preserve
> keep if variable ==1
> cagof ???
> restore
> ***************
>
> But -mgof-  (from SSC) is a better command in many ways, including its
> ability to accept an -if- clause.
>
> On Jul 22, 2010, at 6:53 PM, Frank Gallo wrote:
>
> I want to carry out a chi2 goodness-of-fit test, but I want to add a
> qualifier (e.g., if variable == 1). The csgof command does not allow
> this option. I greatly appreciate any suggestions on how to accomplish
> this task.
>
>
> *
> *   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/
>

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index