|
Hi SPSSers,
I am trying combine the "If (Any," command
with they key word missing but have only succeeded in generating error
messages. So, I resorted to the following:
IF (MISSING (v1) OR MISSING (v45) OR MISSING
(v63) OR MISSING (v78)
OR MISSING (v126) OR MISSING (v154)) Miss=1. But it's cumbersome, and I have a lot more than 6
variables. Can anyone tell me how to simplify this?
Thanks in advance.
Best,
Lisa
|
|
|
In reply to this post by lts1
Try
count xx =
v1 v45 v63 v78 v126 v154 (missing) .
recode xx
(1 thru hi = 1) .
freq xx
.
|
|
Administrator
|
In reply to this post by Albert-Jan Roskam
If the OP wants MISS=0 when it is not 1, then this one-liner will work:
compute miss = nmiss(v1,v45,v63,v78,v126,v154) GT 0. exe.
--
Bruce Weaver bweaver@lakeheadu.ca http://sites.google.com/a/lakeheadu.ca/bweaver/ "When all else fails, RTFM." PLEASE NOTE THE FOLLOWING: 1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above. 2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/). |
| Free forum by Nabble | Edit this page |
