Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
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/