<?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: setting Minimum and Maximum values in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-setting-Minimum-and-Maximum-values/m-p/424638#M22327</link>
    <description>&lt;P&gt;Try the suggestions in this note...&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/techsup/notes/v8/24/475.html&amp;nbsp;" target="_blank"&gt;http://support.sas.com/techsup/notes/v8/24/475.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2018 17:40:31 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2018-01-03T17:40:31Z</dc:date>
    <item>
      <title>PROC MI: setting Minimum and Maximum values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-setting-Minimum-and-Maximum-values/m-p/424479#M22316</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to impute missing data that is based off a scale that ranges from 1 to 25 for 11 of the variables and 0 to 25 for 2 of the variables but I get an error message:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: An imputed variable value is not in the specified range after 100 tries.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The imputed data ranges from -8 to 33.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC MI data=ie out=ie_mi seed=12345 nimpute=10
		/*Set a minimum and maximum for the imputed variables*/
	minimum = 1 1 1 1 1 1 1 1 1 1 1 0 0
	maximum = 25 25 25 25 25 25 25 25 25 25 25 25 25;

	var pbs4_pre pbs8_pre pbs16_pre pbs17_pre pbs18_pre pbs22_pre 
	pbs23_pre pbs27_pre nbs13_pre nbs15_pre nbs19_pre sps4_pre sps5_pre;


RUN;&lt;BR /&gt;&lt;BR /&gt;This is the error: &lt;BR /&gt;&lt;BR /&gt;262 PROC MI data=ie out=ie_mi seed=12345 nimpute=10&lt;BR /&gt;263 /*Set a minimum and maximum for the imputed variables*/&lt;BR /&gt;264 minimum = 1 1 1 1 1 1 1 1 1 1 1 0 0&lt;BR /&gt;265 maximum = 25 25 25 25 25 25 25 25 25 25 25 25 25;&lt;BR /&gt;266&lt;BR /&gt;267 var pbs4_pre pbs8_pre pbs16_pre pbs17_pre pbs18_pre pbs22_pre&lt;BR /&gt;268 pbs23_pre pbs27_pre nbs13_pre nbs15_pre nbs19_pre sps4_pre sps5_pre;&lt;BR /&gt;269&lt;BR /&gt;270&lt;BR /&gt;271 RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: The EM algorithm (MLE) converges in 150 iterations.&lt;BR /&gt;NOTE: The EM algorithm (posterior mode) converges in 47 iterations.&lt;BR /&gt;ERROR: An imputed variable value is not in the specified range after 100 tries.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 23:04:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-setting-Minimum-and-Maximum-values/m-p/424479#M22316</guid>
      <dc:creator>Kpianist</dc:creator>
      <dc:date>2018-01-02T23:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MI: setting Minimum and Maximum values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-setting-Minimum-and-Maximum-values/m-p/424503#M22317</link>
      <description>&lt;P&gt;For others to look at. The log lines are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;262 PROC MI data=ie out=ie_mi seed=12345 nimpute=10
263 /*Set a minimum and maximum for the imputed variables*/
264 minimum = 1 1 1 1 1 1 1 1 1 1 1 0 0
265 maximum = 25 25 25 25 25 25 25 25 25 25 25 25 25;
266
267 var pbs4_pre pbs8_pre pbs16_pre pbs17_pre pbs18_pre pbs22_pre
268 pbs23_pre pbs27_pre nbs13_pre nbs15_pre nbs19_pre sps4_pre sps5_pre;
269
270
271 RUN;
NOTE: The EM algorithm (MLE) converges in 150 iterations.
NOTE: The EM algorithm (posterior mode) converges in 47 iterations.
ERROR: An imputed variable value is not in the specified range after 100 tries.
NOTE: The SAS System stopped processing this step because of errors&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Jan 2018 05:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-setting-Minimum-and-Maximum-values/m-p/424503#M22317</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-01-03T05:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MI: setting Minimum and Maximum values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-setting-Minimum-and-Maximum-values/m-p/424638#M22327</link>
      <description>&lt;P&gt;Try the suggestions in this note...&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/techsup/notes/v8/24/475.html&amp;nbsp;" target="_blank"&gt;http://support.sas.com/techsup/notes/v8/24/475.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 17:40:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-setting-Minimum-and-Maximum-values/m-p/424638#M22327</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2018-01-03T17:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MI: setting Minimum and Maximum values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-setting-Minimum-and-Maximum-values/m-p/424660#M22330</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155173"&gt;@SAS_Rob&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Try the suggestions in this note...&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/techsup/notes/v8/24/475.html&amp;nbsp;" target="_blank"&gt;http://support.sas.com/techsup/notes/v8/24/475.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155173"&gt;@SAS_Rob&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The cited page gets a "Page unavailable" message, at least for me.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 18:38:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-setting-Minimum-and-Maximum-values/m-p/424660#M22330</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-03T18:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MI: setting Minimum and Maximum values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-setting-Minimum-and-Maximum-values/m-p/424669#M22332</link>
      <description>&lt;P&gt;Perhaps you had an extra space or something in there, but the text from the note is below.&lt;/P&gt;
&lt;H2&gt;Usage Note&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;24475:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;What causes the error, "An imputed variable value is not in the specified range after 100 tries," and how can I fix it?&lt;/H2&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Multiple imputation deals with random draws from the posterior distribution of the variables. When you impose the MIN= and MAX= options, you restrict the possible values that can be drawn. If PROC MI draws a value outside the range, it will attempt to draw another. If this continues 100 times, it aborts the process and issues this error message. Beginning in SAS 9, you can specify the MINMAXITER= option to increase the number of attempts, although in practice this rarely works.&lt;/P&gt;
&lt;P&gt;There are a number of other options to try as well when this occurs. You could change the imputation method, try specifying your own prior distribution, or remove the MIN= and MAX= options. If you remove the MIN= and MAX= options, you could then impose those restrictions in a DATA step after performing multiple imputations. This process might require some trial and error and is highly data dependent.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 18:55:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-setting-Minimum-and-Maximum-values/m-p/424669#M22332</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2018-01-03T18:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MI: setting Minimum and Maximum values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-setting-Minimum-and-Maximum-values/m-p/424855#M22341</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you specify what you mean by imposing a restriction on your dataset? Also, could you give an example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Julia&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 08:54:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MI-setting-Minimum-and-Maximum-values/m-p/424855#M22341</guid>
      <dc:creator>Kpianist</dc:creator>
      <dc:date>2018-01-04T08:54:26Z</dc:date>
    </item>
  </channel>
</rss>

