Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: error suppression with by and ttest


From   "Ray, Bryan" <[email protected]>
To   [email protected]
Subject   st: error suppression with by and ttest
Date   Thu, 16 Jan 2003 13:58:27 -0500

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index