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
Steven Samuels <[email protected]>
To
[email protected]
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/