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]
st: Csgof does not count var categories with zero observations
From
Tara Johnson <[email protected]>
To
[email protected]
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/