Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: number of missing variables per observation for string variables


From   Alison El Ayadi <[email protected]>
To   [email protected]
Subject   st: number of missing variables per observation for string variables
Date   Fri, 21 Feb 2014 14:24:15 -0800

Dear Statalist -

I am trying to generate the number of missing variables per
observation among a series of string variables.

I thought that the rmiss2 extension to egen function would perform
this with no problem. However, when I run the following code:

egen nmis=rmiss2(q1-q94)

I get an error: float not allowed r(101).  These are all string
variables, so I don't understand why this is not working.  Does anyone
know how to write this differently or accomplish my goal in a
different way?

Thanks so much,
Alison
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index