<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Proc MI - All observed in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-MI-All-observed/m-p/373939#M19584</link>
    <description>&lt;P&gt;Dear all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering if it is possible to have proc mi to 'skip' subgroups of data with complete data when imputing:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data test_data_1;

  input subgrp resp1 resp2 ;

  cards; 

1 2 2

1 3 3

1 2 .

1 1 3

1 3 2

1 2 1

2 1 2

2 3 3

2 4 2

2 2 1

2 1 3

2 3 2

;

run;

 

proc mi data=test_data_1 nimpute=2;

  by subgrp;

  var resp:;

  monotone regression ;

run;

 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Resulting in:&lt;/P&gt;&lt;P&gt;ERROR: Each observation has analysis variables either all missing or all observed in the data set.&lt;/P&gt;&lt;P&gt;NOTE: The above message was for the following BY group:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subgrp=2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that for subgrp=2 there are no missing observations, but rather than giving an error I would like the option to just get a note, and have the procedure to just skip that subgrp (and repeat the data).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do realize I can remove that subgroup, and then run the MI on the reduced dataset, and then put the data back in – but I would like to avoid that if at all possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br, Henrik&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2017 12:34:01 GMT</pubDate>
    <dc:creator>henrikib</dc:creator>
    <dc:date>2017-07-07T12:34:01Z</dc:date>
    <item>
      <title>Proc MI - All observed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-MI-All-observed/m-p/373939#M19584</link>
      <description>&lt;P&gt;Dear all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering if it is possible to have proc mi to 'skip' subgroups of data with complete data when imputing:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data test_data_1;

  input subgrp resp1 resp2 ;

  cards; 

1 2 2

1 3 3

1 2 .

1 1 3

1 3 2

1 2 1

2 1 2

2 3 3

2 4 2

2 2 1

2 1 3

2 3 2

;

run;

 

proc mi data=test_data_1 nimpute=2;

  by subgrp;

  var resp:;

  monotone regression ;

run;

 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Resulting in:&lt;/P&gt;&lt;P&gt;ERROR: Each observation has analysis variables either all missing or all observed in the data set.&lt;/P&gt;&lt;P&gt;NOTE: The above message was for the following BY group:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subgrp=2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that for subgrp=2 there are no missing observations, but rather than giving an error I would like the option to just get a note, and have the procedure to just skip that subgrp (and repeat the data).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do realize I can remove that subgroup, and then run the MI on the reduced dataset, and then put the data back in – but I would like to avoid that if at all possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br, Henrik&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 12:34:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-MI-All-observed/m-p/373939#M19584</guid>
      <dc:creator>henrikib</dc:creator>
      <dc:date>2017-07-07T12:34:01Z</dc:date>
    </item>
  </channel>
</rss>

