<?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 Re: PROC MI MNAR adjustobs in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-MNAR-adjustobs/m-p/984159#M49302</link>
    <description>&lt;P&gt;Rob,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the suggestion. Would something like this work as an alternative:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mnar adjust (m12/shift=&amp;amp;k1 adjustobs=(treatnp='1' '2')); &lt;BR /&gt;mnar adjust (m12/shift=&amp;amp;k2 adjustobs=(treatnp='3'));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm fine using your solution as well.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Feb 2026 15:26:32 GMT</pubDate>
    <dc:creator>_Hopper</dc:creator>
    <dc:date>2026-02-26T15:26:32Z</dc:date>
    <item>
      <title>PROC MI MNAR adjustobs</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-MNAR-adjustobs/m-p/984098#M49296</link>
      <description>&lt;P&gt;When using PROC MI I was provided some code but it does not work. In my dataset I have three treatment values (1 2 3).&lt;/P&gt;
&lt;P&gt;There are two MNAR calls in the code, one is for TRT&amp;nbsp; = 3 and the other is for TRT 1 and 2 combined. PROC MI says the following code is not allowed because a symbol other an equal "=" isn't allowed. Any thoughts on how to make this work are appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc mi data=&amp;amp;data seed=123 nimpute=100 out=outmi;&lt;BR /&gt;class trtpn;&lt;BR /&gt;fcs reg;&lt;BR /&gt;mnar adjust (m12/shift=&amp;amp;k1 adjustobs=(trtpn^=3));&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;-this line causes an error&lt;BR /&gt;mnar adjust (m12/shift=&amp;amp;k2 adjustobs=(trtpn=3)); &lt;BR /&gt;var m3 m6 m12 m24 m36 ; &lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 21:43:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-MNAR-adjustobs/m-p/984098#M49296</guid>
      <dc:creator>_Hopper</dc:creator>
      <dc:date>2026-02-25T21:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MI MNAR adjustobs</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-MNAR-adjustobs/m-p/984100#M49297</link>
      <description>&lt;P&gt;I think&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155173"&gt;@SAS_Rob&lt;/a&gt;&amp;nbsp;can help you out.&lt;/P&gt;
&lt;P&gt;(he's being notified due to me @-mentioning him here)&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 22:00:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-MNAR-adjustobs/m-p/984100#M49297</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2026-02-25T22:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MI MNAR adjustobs</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-MNAR-adjustobs/m-p/984156#M49301</link>
      <description>&lt;P&gt;MI will only allow you to use an = sign in adjustobs= option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My suggestion would be to create a new variable that only has two levels to it, the combined 1,2 and 3 using a data step by defining it something like this:&lt;/P&gt;
&lt;P&gt;trtpn_new=(trtpn ne 3);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then use that variable in the Proc MI step.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc mi data=&amp;amp;data seed=123 nimpute=100 out=outmi;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class trtpn_new;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fcs reg;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mnar adjust (m12/shift=&amp;amp;k1 adjustobs=(trtpn_new=1));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mnar adjust (m12/shift=&amp;amp;k2 adjustobs=(trtpn_new=0));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var m3 m6 m12 m24 m36 ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2026 15:21:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-MNAR-adjustobs/m-p/984156#M49301</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2026-02-26T15:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MI MNAR adjustobs</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-MNAR-adjustobs/m-p/984159#M49302</link>
      <description>&lt;P&gt;Rob,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the suggestion. Would something like this work as an alternative:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mnar adjust (m12/shift=&amp;amp;k1 adjustobs=(treatnp='1' '2')); &lt;BR /&gt;mnar adjust (m12/shift=&amp;amp;k2 adjustobs=(treatnp='3'));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm fine using your solution as well.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2026 15:26:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-MNAR-adjustobs/m-p/984159#M49302</guid>
      <dc:creator>_Hopper</dc:creator>
      <dc:date>2026-02-26T15:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MI MNAR adjustobs</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-MNAR-adjustobs/m-p/984179#M49304</link>
      <description>&lt;P&gt;Yes, alternatively, you can use a list inside the parenthesis.&amp;nbsp; This approach in your case might be easier so I would recommend that.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mnar adjust (m12/shift=&amp;amp;k1 adjustobs=(treatnp='1' '2'));&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2026 21:56:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-MNAR-adjustobs/m-p/984179#M49304</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2026-02-26T21:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MI MNAR adjustobs</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-MNAR-adjustobs/m-p/984180#M49305</link>
      <description>&lt;P&gt;Rob - thanks. One other item isn't quite working for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say my change mean for treatment groups= -100&lt;/P&gt;
&lt;P&gt;Let's say my control change mean = -200&lt;/P&gt;
&lt;P&gt;I set S1 = -100 and S2 = -200 then my increment is +15 if I want 20 equal intervals. Is this correct?&lt;/P&gt;
&lt;P&gt;The MI output doesn't look right - the shift values appear to be going the wrong way as the model iterates. Any thoughts?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2026 22:46:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-MNAR-adjustobs/m-p/984180#M49305</guid>
      <dc:creator>_Hopper</dc:creator>
      <dc:date>2026-02-26T22:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MI MNAR adjustobs</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-MNAR-adjustobs/m-p/984220#M49306</link>
      <description>Can you post the most recent code along  with the output that shows what you are seeing?</description>
      <pubDate>Fri, 27 Feb 2026 15:26:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-MNAR-adjustobs/m-p/984220#M49306</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2026-02-27T15:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MI MNAR adjustobs</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-MNAR-adjustobs/m-p/984276#M49310</link>
      <description>&lt;P&gt;Rob,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As it turns out the model code I was given contained an error, so that S2 was not properly computed. Once I corrected it, the code ran as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2026 16:04:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-MNAR-adjustobs/m-p/984276#M49310</guid>
      <dc:creator>_Hopper</dc:creator>
      <dc:date>2026-03-02T16:04:55Z</dc:date>
    </item>
  </channel>
</rss>

