<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>FAQ/cc</title><revhistory><revision><revnumber>11</revnumber><date>2013-03-08 10:17:15</date><authorinitials>localhost</authorinitials><revremark>converted to 1.6 markup</revremark></revision><revision><revnumber>10</revnumber><date>2012-07-09 13:37:30</date><authorinitials>PeterWatson</authorinitials><revremark>Revert to revision 6.</revremark></revision><revision><revnumber>9</revnumber><date>2012-07-07 17:27:18</date><authorinitials>ip101-133-212-87.adsl2.static.versatel.nl</authorinitials><revremark>zyLadY , [url=http://mwiwgdikgjzo.com/]mwiwgdikgjzo[/url], [link=http://fxgkyivroqto.com/]fxgkyivroqto[/link], http://dpqsjbrjeknj.com/</revremark></revision><revision><revnumber>8</revnumber><date>2012-07-07 01:30:44</date><authorinitials>109.162.159.213</authorinitials><revremark>wot9G0  &lt;a href=&quot;http://fpcjxwwsykhy.com/&quot;&gt;fpcjxwwsykhy&lt;/a&gt;</revremark></revision><revision><revnumber>7</revnumber><date>2012-07-05 09:45:14</date><authorinitials>70-91-64-9-md.hfc.comcastbusiness.net</authorinitials><revremark>I recently vieistd Phog for the first time to catch Lindy. As always he was great, but what really surprised me was the incredible beer selection.I plan on returning, but having an up to date schedule</revremark></revision><revision><revnumber>6</revnumber><date>2008-03-14 12:42:05</date><authorinitials>PeterWatson</authorinitials></revision><revision><revnumber>5</revnumber><date>2008-03-14 12:41:53</date><authorinitials>PeterWatson</authorinitials></revision><revision><revnumber>4</revnumber><date>2008-03-07 12:35:34</date><authorinitials>PeterWatson</authorinitials></revision><revision><revnumber>3</revnumber><date>2008-03-07 12:35:22</date><authorinitials>PeterWatson</authorinitials></revision><revision><revnumber>2</revnumber><date>2008-03-06 15:48:23</date><authorinitials>PeterWatson</authorinitials></revision><revision><revnumber>1</revnumber><date>2008-03-06 15:47:52</date><authorinitials>PeterWatson</authorinitials></revision></revhistory></articleinfo><section><title>Identifying complete cases in SPSS and R</title><para>Identifies complete cases using variables A and B. You will need to insert a comma separated list of your variable names in place of a,b in the NMISS statement. Incomplete cases are filtered out of all succeeding analyses. To enable deletion of incomplete cases the file is also sorted so that the complete cases are at the top of the file.  </para><screen><![CDATA[DEFINE MISS (!POS !CMDEND).
COMPUTE NM=NMISS(!1). 
EXE. 
COMPUTE NMC=0. 
IF (NM EQ 0) NMC=1. 
FILTER BY NMC. 
SORT CASES BY NMC (D). 
EXE. 
!ENDDEFINE.]]></screen><para>This can then be run using a comma separated list of variable names. </para><screen><![CDATA[MISS A,B.
EXE.]]></screen><para>To use all cases in the file: </para><screen><![CDATA[FILTER OFF.]]></screen><para>In R the function <emphasis>na.omit</emphasis> extracts complete cases from the data frame. In the example below the data.frame, cc, contains complete cases. </para><screen><![CDATA[x <- read.spss("raw65n.sav")
x1 <- data.frame(x)
cc <- na.omit(x1)]]></screen></section></article>