i want to do a chi square goodness-of-fit test for specified proportions for
one-way table. however some levels are not observed in the sample. so i get
an error saying
the number of TESTP values must equal the number of table cells
how can i get around that? even though i artificially add observations of
missing levels to the sample with zero weight, i still get this error. thx.