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]

st: Csgof does not count var categories with zero observations


From   Tara Johnson <tjohnsonrogers@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Csgof does not count var categories with zero observations
Date   Wed, 6 Jun 2012 17:56:36 -0400

I want to conduct a chi-square goodness of fit test. The problem is I
have a variable with multiple categories with no observations. When I
run csgof, Stata does not include the categories with no observations.
How do I get Stata to count the categories which could be there in
principle but which in practice don't exist?

Thanks,

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