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]
Re: st: RE: number of missing variables per observation for string variables
From
Alison El Ayadi <[email protected]>
To
[email protected]
Subject
Re: st: RE: number of missing variables per observation for string variables
Date
Fri, 21 Feb 2014 15:01:30 -0800
Great suggestion, David - Thank you!
On Fri, Feb 21, 2014 at 2:44 PM, Radwin, David <[email protected]> wrote:
> Alison,
>
> Why not use -egen- with the rowmiss function?
>
> . egen nmissing = rowmiss(q1-q94)
>
> David
> --
> David Radwin, Senior Research Associate
> Education and Workforce Development
> RTI International
> 2150 Shattuck Ave. Suite 800, Berkeley, CA 94704
> Phone: 510-665-8274
>
> www.rti.org/education
>
>
>> -----Original Message-----
>> From: [email protected] [mailto:owner-
>> [email protected]] On Behalf Of Alison El Ayadi
>> Sent: Friday, February 21, 2014 2:24 PM
>> To: [email protected]
>> Subject: st: number of missing variables per observation for string
>> variables
>>
>> 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/
*
* 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/