<?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 Using proc MIANALYZE with dataset from an proc mixed ESTIMATE statement in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Using-proc-MIANALYZE-with-dataset-from-an-proc-mixed-ESTIMATE/m-p/740382#M35985</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the proc mixed estimate statements to estimate the mean difference in slopes, i.e. treatment arm x time interaction, and I am using the follow ods dataset.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 485px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59202i64A50AFE382CEA5C/image-dimensions/485x180?v=v2" width="485" height="180" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I'm trying to use proc mianalyze for it, but I cannot seem to get modeleffects to work when putting "label" or the actual variable names in there. Could someone help me understand how to use proc mianalyze for something like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 May 2021 06:01:08 GMT</pubDate>
    <dc:creator>changisme</dc:creator>
    <dc:date>2021-05-11T06:01:08Z</dc:date>
    <item>
      <title>Using proc MIANALYZE with dataset from an proc mixed ESTIMATE statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-proc-MIANALYZE-with-dataset-from-an-proc-mixed-ESTIMATE/m-p/740382#M35985</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the proc mixed estimate statements to estimate the mean difference in slopes, i.e. treatment arm x time interaction, and I am using the follow ods dataset.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 485px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59202i64A50AFE382CEA5C/image-dimensions/485x180?v=v2" width="485" height="180" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I'm trying to use proc mianalyze for it, but I cannot seem to get modeleffects to work when putting "label" or the actual variable names in there. Could someone help me understand how to use proc mianalyze for something like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 06:01:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-proc-MIANALYZE-with-dataset-from-an-proc-mixed-ESTIMATE/m-p/740382#M35985</guid>
      <dc:creator>changisme</dc:creator>
      <dc:date>2021-05-11T06:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc MIANALYZE with dataset from an proc mixed ESTIMATE statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-proc-MIANALYZE-with-dataset-from-an-proc-mixed-ESTIMATE/m-p/740430#M35986</link>
      <description>&lt;P&gt;The key is not to use spaces in the labeling of the ESTIMATE statements since those ultimately will be the variables you place on the MODELEFFECTS statement.&amp;nbsp; Below is a simple example you can follow and apply in your case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;BR /&gt;do a=1 to 3;&lt;BR /&gt;do rep=1 to 10;&lt;BR /&gt;x=ranuni(123)*10;&lt;BR /&gt;if ranuni(234)&amp;gt;.55 then y=.;&lt;BR /&gt;else y=.46+.88*a+x+rannor(123);&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;/P&gt;
&lt;P&gt;proc mi data=test out=outmi;&lt;BR /&gt;var a x y;&lt;BR /&gt;run;&lt;BR /&gt;ods trace on;&lt;BR /&gt;proc mixed data=outmi;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;class a;&lt;BR /&gt;model y=a x;&lt;BR /&gt;estimate 'A1_v_A2' a 1 -1 0;*do not use spaces in the labels;&lt;BR /&gt;estimate 'A1_v_A3' a 1 0 -1;&lt;BR /&gt;ods output estimates=estimate_ds(rename=(label=effect));&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc mianalyze parms=estimate_ds;&lt;BR /&gt;modeleffects A1_v_A2 A1_v_A3;*these are the labels you used;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 11:28:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-proc-MIANALYZE-with-dataset-from-an-proc-mixed-ESTIMATE/m-p/740430#M35986</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2021-05-11T11:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc MIANALYZE with dataset from an proc mixed ESTIMATE statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-proc-MIANALYZE-with-dataset-from-an-proc-mixed-ESTIMATE/m-p/740502#M35989</link>
      <description>&lt;P&gt;Hi Rob,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's very helpful, but I'm getting some odd errors. When I included all the pairwise comparisons, it says sas is out of memories, even if I subset the imputation dataset to just 2 imputations. If I only ask for 1 of the effects, it says the effect is not in the dataset, even though it is in there for sure. I was able to successfully run your example, and I can't see how mine is different... Any clues?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 685px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59212iD975616836ED6053/image-dimensions/685x306?v=v2" width="685" height="306" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 491px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59213iB579FEBE0D47367F/image-dimensions/491x130?v=v2" width="491" height="130" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 14:58:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-proc-MIANALYZE-with-dataset-from-an-proc-mixed-ESTIMATE/m-p/740502#M35989</guid>
      <dc:creator>changisme</dc:creator>
      <dc:date>2021-05-11T14:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc MIANALYZE with dataset from an proc mixed ESTIMATE statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-proc-MIANALYZE-with-dataset-from-an-proc-mixed-ESTIMATE/m-p/740536#M35991</link>
      <description>&lt;P&gt;Try running it without the CLASS statement like I did and see if that helps.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 16:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-proc-MIANALYZE-with-dataset-from-an-proc-mixed-ESTIMATE/m-p/740536#M35991</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2021-05-11T16:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc MIANALYZE with dataset from an proc mixed ESTIMATE statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-proc-MIANALYZE-with-dataset-from-an-proc-mixed-ESTIMATE/m-p/740547#M35992</link>
      <description>&lt;P&gt;That worked perfectly. Thanks a bunch! Why is that? Does class statement change the variable somehow?&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 16:50:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-proc-MIANALYZE-with-dataset-from-an-proc-mixed-ESTIMATE/m-p/740547#M35992</guid>
      <dc:creator>changisme</dc:creator>
      <dc:date>2021-05-11T16:50:03Z</dc:date>
    </item>
  </channel>
</rss>

