Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: chi2 goodness-of-fit test


From   Steven Samuels <sjhsamuels@earthlink.net>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: chi2 goodness-of-fit test
Date   Thu, 22 Jul 2010 21:04:55 -0400

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.

Steve

On Jul 22, 2010, at 6:53 PM, Frank Gallo wrote:

Dear All:

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.

Best,
Frank
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index