I have found the solution, using "neqany" function.
samir
samirkc wrote:
Dear Statalisters,
I am trying to count specific values in different variables and
generate a new variable. How can I do it?
Thanks
Samir
*
* 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/
*
* 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/