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

st: assigning a name to the output of the "count"


From   sarah smith <[email protected]>
To   [email protected]
Subject   st: assigning a name to the output of the "count"
Date   Sat, 1 Jan 2005 17:37:17 -0500

Dear Stata users, 

I would like to count the number of missing observations in a variable
-var1- of my dataset and perform cetain operations based on the count.
To do this I entered
count if var1 == .
and  I get a number, lets say 40: However, when I wanted to compare
the output of count (here 40) with another number such that:
if count <=50 {....

I receive error message saying that stata could not find count. How
can I assign a name to the output of the count command?

thanks a lot
Sarah
*
*   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