<?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: why the model built by PROC MI changes if the observations NOT specified as modelobs change? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/why-the-model-built-by-PROC-MI-changes-if-the-observations-NOT/m-p/971915#M48841</link>
    <description>&lt;P&gt;But you are filtering input data differently. The where clause selects different observations so each proc works on different data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's like you'd do:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=sashelp.class(where=(sex in ('F', 'M') ));
  model height = weight age; 
run;

proc reg data=sashelp.class(where=(sex in ('F') ));
  model height = weight age; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
    <pubDate>Fri, 01 Aug 2025 11:19:55 GMT</pubDate>
    <dc:creator>yabwon</dc:creator>
    <dc:date>2025-08-01T11:19:55Z</dc:date>
    <item>
      <title>why the model built by PROC MI changes if the observations NOT specified as modelobs change?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/why-the-model-built-by-PROC-MI-changes-if-the-observations-NOT/m-p/971900#M48839</link>
      <description>&lt;P&gt;I want to use PMM(pattern mixed model) to impute missing data, so I used the MNAR modelobs to specify the observations used to build the imputation model, but i found if the observations in the dataset but are NOT specified as modelobs change, the imoutation model will change too, it confused me,&amp;nbsp; from my understanding, the imputation model is derived from the observations i specified in the option 'modelobs=x',&amp;nbsp; so it will not be impacted by the other observations, but&amp;nbsp; it seems this is not the truth.&lt;/P&gt;&lt;P&gt;Here are some examples:&lt;/P&gt;&lt;P&gt;the only difference between below 2 codes is the input dataset, in code 2, more observations are included in the input dataset. &lt;STRONG&gt;bothe of the 2 codes use observations&amp;nbsp; 'model_ob='M4'' to specify the observations used to derive the imputation model.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yan_vivien_0-1754023198931.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/108734i7D3C9E5287359BB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yan_vivien_0-1754023198931.png" alt="Yan_vivien_0-1754023198931.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;in the SAS output, &amp;nbsp;&lt;STRONG&gt;the parameters that are estimated from the same observations used to build model are different, why ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ps: i tried to procude the below pictures in English version SAS, but failed due to codeing issue, hope the CHINESE charactors doesn't affect your reading.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yan_vivien_2-1754023885045.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/108736i44CE144E63AA2529/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yan_vivien_2-1754023885045.png" alt="Yan_vivien_2-1754023885045.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yan_vivien_3-1754023888532.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/108737iD19B7775A1BF9E07/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yan_vivien_3-1754023888532.png" alt="Yan_vivien_3-1754023888532.png" /&gt;&lt;/span&gt;&lt;/P&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;</description>
      <pubDate>Fri, 01 Aug 2025 05:01:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/why-the-model-built-by-PROC-MI-changes-if-the-observations-NOT/m-p/971900#M48839</guid>
      <dc:creator>Yan_vivien</dc:creator>
      <dc:date>2025-08-01T05:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: why the model built by PROC MI changes if the observations NOT specified as modelobs change?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/why-the-model-built-by-PROC-MI-changes-if-the-observations-NOT/m-p/971915#M48841</link>
      <description>&lt;P&gt;But you are filtering input data differently. The where clause selects different observations so each proc works on different data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's like you'd do:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=sashelp.class(where=(sex in ('F', 'M') ));
  model height = weight age; 
run;

proc reg data=sashelp.class(where=(sex in ('F') ));
  model height = weight age; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 11:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/why-the-model-built-by-PROC-MI-changes-if-the-observations-NOT/m-p/971915#M48841</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2025-08-01T11:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: why the model built by PROC MI changes if the observations NOT specified as modelobs change?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/why-the-model-built-by-PROC-MI-changes-if-the-observations-NOT/m-p/971929#M48843</link>
      <description>&lt;P&gt;yes, the input data are different, but the modelobs used to derive the imputation model are the same (both are modelobs='M4'), so the regression parameters (the numbers in red boxes in the lower pictures) derived from the same observations should be same too, right?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 11:56:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/why-the-model-built-by-PROC-MI-changes-if-the-observations-NOT/m-p/971929#M48843</guid>
      <dc:creator>Yan_vivien</dc:creator>
      <dc:date>2025-08-01T11:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: why the model built by PROC MI changes if the observations NOT specified as modelobs change?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/why-the-model-built-by-PROC-MI-changes-if-the-observations-NOT/m-p/971957#M48844</link>
      <description>&lt;P&gt;You right, running this simple example on Cars dataset shows it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cars;
set sashelp.cars;
if _N_ in (6 8 47 99 101) then invoice=.;
run;


proc mi data=cars(where=(origin in ('Asia', 'Europe', 'USA') )) out=imp1 seed=123 nimpute=1;
  class origin; 
  var Weight invoice;
  monotone reg (invoice = Weight / details);
  mnar model(invoice / modelobs=(origin='Europe'));
run;

proc mi data=cars(where=(origin in ('USA', 'Europe') )) out=imp2 seed=123 nimpute=1;
  class origin; 
  var Weight invoice;
  monotone reg (invoice = Weight / details);
  mnar model(invoice / modelobs=(origin='Europe'));
run;

proc mi data=cars(where=(origin in ('Europe') )) out=imp3 seed=123 nimpute=1;
  class origin; 
  var Weight invoice;
  monotone reg (invoice = Weight / details);
  mnar model(invoice / modelobs=(origin='Europe'));
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but at the bottom of this page:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/statug/15.2/statug_mi_details61.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/statug/15.2/statug_mi_details61.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Under the MNAR assumption, the following steps are used to impute missing values for each imputed variable in each imputation (when you specify a MONOTONE statement) or in each iteration (when you specify an FCS statement):&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;1. For each imputed variable, a conditional model, such as a regression model for continuous variables, is fitted using either all applicable observations or a specified subset of observations.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;2. A new model is simulated from the posterior predictive distribution of the fitted model.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;3. Missing values of the variable are imputed based on the new model, and the imputed values for a specified subset of observations can be adjusted using specified shift and scale parameters.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like after model from selected observations is fitted, another one is fitted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's my best guess.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 13:29:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/why-the-model-built-by-PROC-MI-changes-if-the-observations-NOT/m-p/971957#M48844</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2025-08-01T13:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: why the model built by PROC MI changes if the observations NOT specified as modelobs change?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/why-the-model-built-by-PROC-MI-changes-if-the-observations-NOT/m-p/971963#M48845</link>
      <description>&lt;P&gt;The reason for the differences has to do with the fact that all of the variables are standardized using all of the observations prior to fitting the imputation model.&amp;nbsp; Adding observations changes the mean and variance and thus the standardized values.&amp;nbsp; These values are then used in the imputation model, which is built only on one of the groups, which leads to slightly different estimates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To see this more explicitly, look at the example below.&amp;nbsp; Notice how the "obs-data" estimates change slightly because all the observations are standardized.&amp;nbsp; This can be readily verified using Proc STANDARD and Proc REG.&lt;/P&gt;
&lt;P&gt;data Mono1;&lt;BR /&gt;do Trt=0 to 1;&lt;BR /&gt;do j=1 to 5;&lt;BR /&gt;y0=10 + rannor(999);&lt;BR /&gt;y1= y0 + Trt + rannor(999);&lt;BR /&gt;if (ranuni(999) &amp;lt; 0.3) then y1=.;&lt;BR /&gt;output;&lt;BR /&gt;end; end;&lt;/P&gt;
&lt;P&gt;do Trt=0 to 1;&lt;BR /&gt;do j=1 to 45;&lt;BR /&gt;y0=10 + rannor(999);&lt;BR /&gt;y1= y0 + Trt + rannor(999);&lt;BR /&gt;if (ranuni(999) &amp;lt; 0.3) then y1=.;&lt;BR /&gt;output;&lt;BR /&gt;end; end;&lt;BR /&gt;drop j;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc mi data=Mono1 seed=14823 nimpute=1 out=outex15;&lt;BR /&gt;class Trt;&lt;BR /&gt;monotone reg (/details);&lt;BR /&gt;mnar model( y1 / modelobs= (Trt='0'));&lt;BR /&gt;var y0 y1;&lt;BR /&gt;ods select MonoReg;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc standard data=mono1 mean=0 std=1 out=out1;&lt;BR /&gt;var y0 y1;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc reg data=out1;&lt;BR /&gt;where trt=0;&lt;BR /&gt;model y1=y0;&lt;BR /&gt;ods select ParameterEstimates;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;data add;&lt;BR /&gt;trt=1;&lt;BR /&gt;do j=1 to 45;&lt;BR /&gt;y0=10 + rannor(1);&lt;BR /&gt;y1= y0 + Trt + rannor(999);&lt;BR /&gt;if (ranuni(999) &amp;lt; 0.3) then y1=.;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;drop j;&lt;BR /&gt;run;&lt;BR /&gt;data mono2;&lt;BR /&gt;set mono1 add;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc mi data=Mono2 seed=14823 nimpute=15 out=outex15;&lt;BR /&gt;class Trt;&lt;BR /&gt;monotone reg (/details);&lt;BR /&gt;mnar model( y1 / modelobs= (Trt='0'));&lt;BR /&gt;var y0 y1;&lt;BR /&gt;ods select MonoReg;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc standard data=mono2 mean=0 std=1 out=out2;&lt;BR /&gt;var y0 y1;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc reg data=out2;&lt;BR /&gt;where trt=0;&lt;BR /&gt;model y1=y0;&lt;BR /&gt;ods select ParameterEstimates;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 15:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/why-the-model-built-by-PROC-MI-changes-if-the-observations-NOT/m-p/971963#M48845</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2025-08-01T15:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: why the model built by PROC MI changes if the observations NOT specified as modelobs change?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/why-the-model-built-by-PROC-MI-changes-if-the-observations-NOT/m-p/972083#M48850</link>
      <description>&lt;P&gt;Hi, could you please help to explain the meaning of numbers from "Imputation" column?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="whymath_0-1754360390402.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/108794i42898EDB7F20439F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="whymath_0-1754360390402.png" alt="whymath_0-1754360390402.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It is produced by your first proc mi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 02:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/why-the-model-built-by-PROC-MI-changes-if-the-observations-NOT/m-p/972083#M48850</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2025-08-05T02:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: why the model built by PROC MI changes if the observations NOT specified as modelobs change?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/why-the-model-built-by-PROC-MI-changes-if-the-observations-NOT/m-p/972113#M48852</link>
      <description>&lt;P&gt;Those are the parameters that are used to generate the first imputed data set.&amp;nbsp; They are the result of Step 1, that are used in Step 2, as detailed in the documentation for the Montone Regression Method.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_mi_details07.htm" target="_blank"&gt;SAS Help Center: Monotone and FCS Regression Methods&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 13:30:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/why-the-model-built-by-PROC-MI-changes-if-the-observations-NOT/m-p/972113#M48852</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2025-08-05T13:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: why the model built by PROC MI changes if the observations NOT specified as modelobs change?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/why-the-model-built-by-PROC-MI-changes-if-the-observations-NOT/m-p/972619#M48861</link>
      <description>It explains the matter. Thank you so much! it helps a lot!</description>
      <pubDate>Thu, 14 Aug 2025 13:07:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/why-the-model-built-by-PROC-MI-changes-if-the-observations-NOT/m-p/972619#M48861</guid>
      <dc:creator>Yan_vivien</dc:creator>
      <dc:date>2025-08-14T13:07:26Z</dc:date>
    </item>
  </channel>
</rss>

