I am doing a simple difference of means test using the ttest function. I
want to perform the test for several different groups that are defined by a
variable called customer. However, for some customers the test cannot be
performed because one of the samples does not exist. When this error is
encountered the output is terminated. Is it possible to somehow suppress the
error so that the output will not terminate? See below for the command that
I am using and a snippet of the output. Thanks.
Bryan
---------------------------------------------------------
by customer: ttest pos, by(dum)
<ouputt removed>
-> customer = Ten
1 group found, 2 required
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/