<?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 How can I make Predicted Mean Graph with 90%CI Using PROC MIXED? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-make-Predicted-Mean-Graph-with-90-CI-Using-PROC-MIXED/m-p/460389#M15882</link>
    <description>&lt;P&gt;Hi, All:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to investigate clinical trial data by Linear Mixed-Effects Modeling and I want to make Predicted Mean Graph with 90%CI, which is like attached picture (Plots are not needed).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started hunting and got following ideas, but I haven't reached clear one yet, and they are like difficult ones to understand. If you have easier ideas, advice, reference documents and so on, please let me know. Thank you for your kind cooperation.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LikeThis.PNG" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20388i12EC08FA7159235D/image-size/small?v=v2&amp;amp;px=200" role="button" title="LikeThis.PNG" alt="LikeThis.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Ideas I reached are following.....&lt;/P&gt;&lt;P&gt;No. 1: Use OUTP= option in MODEL Statement of PROC MIXED -&amp;gt; Use SGPLOT (I couldn't get wanted one.)&lt;/P&gt;&lt;P&gt;No. 2: PROC MIXED or PROC GLIMMIX -&amp;gt; PROC PLM (difficult one? less information)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* For Example, I want to make graph by using information in Output "Solution for Fixed Effects" */
data hospital;
    input hospital physician x y @@;
    datalines;
    1 1 19.4 32.4 1 1 19.3 28.3 1 1 19.2 31.9
    1 2 18.8 18.9 1 2 18.4 20.3 1 2 18.2 21.3
    1 3 19.7 24.8 1 3 20.4 38.6 1 3 20.2 27.4
    1 4 19.3 36.1 1 4 21.7 32.4 1 4 20.8 30.7
    2 1 21.5 31.3 2 1 18.7 28.5 2 1 19.9 20.1
    2 2 18.9 31.8 2 2 18.7 25.1 2 2 19.5 32.9
    2 3 18.7 18.3 2 3 19.4 27.4 2 3 19.5 26.2
    2 4 20.9 28.6 2 4 21.1 29.9 2 4 20.0 16.4
    ;
run;
proc mixed data=hospital;
    class hospital physician;
    model y=x / ddfm=kr solution;
    random int / subject=physician(hospital);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 07 May 2018 10:21:47 GMT</pubDate>
    <dc:creator>KentaMURANAKA</dc:creator>
    <dc:date>2018-05-07T10:21:47Z</dc:date>
    <item>
      <title>How can I make Predicted Mean Graph with 90%CI Using PROC MIXED?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-make-Predicted-Mean-Graph-with-90-CI-Using-PROC-MIXED/m-p/460389#M15882</link>
      <description>&lt;P&gt;Hi, All:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to investigate clinical trial data by Linear Mixed-Effects Modeling and I want to make Predicted Mean Graph with 90%CI, which is like attached picture (Plots are not needed).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started hunting and got following ideas, but I haven't reached clear one yet, and they are like difficult ones to understand. If you have easier ideas, advice, reference documents and so on, please let me know. Thank you for your kind cooperation.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LikeThis.PNG" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20388i12EC08FA7159235D/image-size/small?v=v2&amp;amp;px=200" role="button" title="LikeThis.PNG" alt="LikeThis.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Ideas I reached are following.....&lt;/P&gt;&lt;P&gt;No. 1: Use OUTP= option in MODEL Statement of PROC MIXED -&amp;gt; Use SGPLOT (I couldn't get wanted one.)&lt;/P&gt;&lt;P&gt;No. 2: PROC MIXED or PROC GLIMMIX -&amp;gt; PROC PLM (difficult one? less information)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* For Example, I want to make graph by using information in Output "Solution for Fixed Effects" */
data hospital;
    input hospital physician x y @@;
    datalines;
    1 1 19.4 32.4 1 1 19.3 28.3 1 1 19.2 31.9
    1 2 18.8 18.9 1 2 18.4 20.3 1 2 18.2 21.3
    1 3 19.7 24.8 1 3 20.4 38.6 1 3 20.2 27.4
    1 4 19.3 36.1 1 4 21.7 32.4 1 4 20.8 30.7
    2 1 21.5 31.3 2 1 18.7 28.5 2 1 19.9 20.1
    2 2 18.9 31.8 2 2 18.7 25.1 2 2 19.5 32.9
    2 3 18.7 18.3 2 3 19.4 27.4 2 3 19.5 26.2
    2 4 20.9 28.6 2 4 21.1 29.9 2 4 20.0 16.4
    ;
run;
proc mixed data=hospital;
    class hospital physician;
    model y=x / ddfm=kr solution;
    random int / subject=physician(hospital);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 10:21:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-can-I-make-Predicted-Mean-Graph-with-90-CI-Using-PROC-MIXED/m-p/460389#M15882</guid>
      <dc:creator>KentaMURANAKA</dc:creator>
      <dc:date>2018-05-07T10:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make Predicted Mean Graph with 90%CI Using PROC MIXED?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-make-Predicted-Mean-Graph-with-90-CI-Using-PROC-MIXED/m-p/460461#M15884</link>
      <description>&lt;P&gt;Your first step would likely be to set the option Alpha=0.1 to create 90% confidence intervals. The default for Alpha is 0.05 creating 95% intervals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that "couldn't get wanted one" does not clarify why you did not get the one you wanted. What was wrong, other than a likely Alpha related issue?&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 15:07:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-can-I-make-Predicted-Mean-Graph-with-90-CI-Using-PROC-MIXED/m-p/460461#M15884</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-07T15:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make Predicted Mean Graph with 90%CI Using PROC MIXED?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-make-Predicted-Mean-Graph-with-90-CI-Using-PROC-MIXED/m-p/460462#M15885</link>
      <description>&lt;P&gt;You have to use the OUTPM= option on the MODEL statement to get the predicted means. Otherwise, the band and fitted values will be based on the individual predictions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=hospital alpha=0.1;
    class hospital physician;
    model y=x / ddfm=kr solution outpm=Predicted;
    random int / subject=physician(hospital);
run;

proc sort data=Predicted; by x; run;

proc sgplot data=Predicted;
band x=x lower=Lower upper=Upper / legendlabel="90% CLM";
series x=x y=pred;
scatter x=x y=y;  
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 15:08:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-can-I-make-Predicted-Mean-Graph-with-90-CI-Using-PROC-MIXED/m-p/460462#M15885</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-05-07T15:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make Predicted Mean Graph with 90%CI Using PROC MIXED?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-make-Predicted-Mean-Graph-with-90-CI-Using-PROC-MIXED/m-p/460653#M15891</link>
      <description>&lt;P&gt;Dear ballardw &amp;amp; Rick:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply and I'm so sorry for confusing you with insufficient information.&lt;/P&gt;&lt;P&gt;Like Mr. Rick said, I used OUTP= option and I got data based on the individual predictions, so I was confused.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I accomplished my objective.&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 08:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-can-I-make-Predicted-Mean-Graph-with-90-CI-Using-PROC-MIXED/m-p/460653#M15891</guid>
      <dc:creator>KentaMURANAKA</dc:creator>
      <dc:date>2018-05-08T08:43:12Z</dc:date>
    </item>
  </channel>
</rss>

