<?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: How to insert p-value in summary box of fit plots? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-insert-p-value-in-summary-box-of-fit-plots/m-p/833091#M23166</link>
    <description>As DanH said, make sure your macro variable generated correctly . To check it, open your dataset that generate these macro variable,and check if is there any obs/value to generate macro variable.</description>
    <pubDate>Tue, 13 Sep 2022 11:59:31 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-09-13T11:59:31Z</dc:date>
    <item>
      <title>How to insert p-value in summary box of fit plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-insert-p-value-in-summary-box-of-fit-plots/m-p/832721#M23157</link>
      <description>&lt;P&gt;Does anyone know how to modify/edit the variables appearing in the fit plots' summary box (in the output)? I want to include the p-value and standard error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sas_CommQ1.jpg" style="width: 465px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75129i1EEA6B737A586B27/image-dimensions/465x339?v=v2" width="465" height="339" role="button" title="Sas_CommQ1.jpg" alt="Sas_CommQ1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using:&lt;/P&gt;&lt;P&gt;PROC REG DATA=Test1 CORR;&lt;BR /&gt;MODEL Y=X / CLB P CLM;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2022 04:04:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-insert-p-value-in-summary-box-of-fit-plots/m-p/832721#M23157</guid>
      <dc:creator>Joa14</dc:creator>
      <dc:date>2022-09-11T04:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert p-value in summary box of fit plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-insert-p-value-in-summary-box-of-fit-plots/m-p/832744#M23158</link>
      <description>&lt;P&gt;Save these statistics and Plot it by PROC SGPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods output ParameterEstimates=x;
PROC REG DATA=sashelp.class CORR ;
MODEL height=weight / CLB P CLM;
quit;

proc sql ;
select catx(' ',Variable,'StdErr:',put(StdErr,8.2)) into : StdErr from x
 where Variable='Weight'
;
select catx(' ',Variable,'PValue:',put(Probt,pvalue8.2)) into : Probt from x
 where Variable='Weight'
;
quit;
proc sgplot data=sashelp.class;
reg y=height x=weight/clm;
inset "&amp;amp;StdErr." "&amp;amp;Probt.";
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1662892929782.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75132iDED816F868EFD86B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1662892929782.png" alt="Ksharp_0-1662892929782.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2022 10:42:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-insert-p-value-in-summary-box-of-fit-plots/m-p/832744#M23158</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-09-11T10:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert p-value in summary box of fit plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-insert-p-value-in-summary-box-of-fit-plots/m-p/832817#M23160</link>
      <description>&lt;P&gt;Thank you so much, Ksharp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did try your code but it did not generate what I wanted. I found another one in this link &lt;A href="https://support.sas.com/kb/65/202.html" target="_blank"&gt;https://support.sas.com/kb/65/202.html&lt;/A&gt;&amp;nbsp;but the box with the summary is not shown correctly (as shown in the image). Any suggestions?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sas_CommQ2.jpg" style="width: 710px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75139iC4B6832667A90950/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sas_CommQ2.jpg" alt="Sas_CommQ2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 05:38:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-insert-p-value-in-summary-box-of-fit-plots/m-p/832817#M23160</guid>
      <dc:creator>Joa14</dc:creator>
      <dc:date>2022-09-12T05:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert p-value in summary box of fit plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-insert-p-value-in-summary-box-of-fit-plots/m-p/832855#M23161</link>
      <description>Maybe there is not enough room for INSET.&lt;BR /&gt;Try add this into your SGPLOT :&lt;BR /&gt;&lt;BR /&gt;  yaxis min=-10;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Sep 2022 10:46:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-insert-p-value-in-summary-box-of-fit-plots/m-p/832855#M23161</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-09-12T10:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert p-value in summary box of fit plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-insert-p-value-in-summary-box-of-fit-plots/m-p/832914#M23162</link>
      <description>&lt;P&gt;Thank you so much, Ksharp.&lt;/P&gt;&lt;P&gt;I stopped using the software for several hours, and then when I tried again, it worked without putting your suggestion. However, now I get a warning that does not allow p-value and St Err to show in the summary box. As you can see in my previous graph, it worked (at least I could see the values), but now it does not. I wonder if it is a software issue. See the warning below. Any suggestion would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;WARNING: Apparent symbolic reference PROBT not resolved.&lt;/DIV&gt;&lt;DIV class=""&gt;229 "St Error"="&amp;amp;StdErr"&lt;/DIV&gt;&lt;DIV class=""&gt;WARNING: Apparent symbolic reference STDERR not resolved.&lt;/DIV&gt;</description>
      <pubDate>Mon, 12 Sep 2022 15:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-insert-p-value-in-summary-box-of-fit-plots/m-p/832914#M23162</guid>
      <dc:creator>Joa14</dc:creator>
      <dc:date>2022-09-12T15:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert p-value in summary box of fit plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-insert-p-value-in-summary-box-of-fit-plots/m-p/832942#M23163</link>
      <description>&lt;P&gt;You might want want to do a "proc print data=x; run;" to make sure those parameters are in your data set.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 16:51:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-insert-p-value-in-summary-box-of-fit-plots/m-p/832942#M23163</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-09-12T16:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert p-value in summary box of fit plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-insert-p-value-in-summary-box-of-fit-plots/m-p/833091#M23166</link>
      <description>As DanH said, make sure your macro variable generated correctly . To check it, open your dataset that generate these macro variable,and check if is there any obs/value to generate macro variable.</description>
      <pubDate>Tue, 13 Sep 2022 11:59:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-insert-p-value-in-summary-box-of-fit-plots/m-p/833091#M23166</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-09-13T11:59:31Z</dc:date>
    </item>
  </channel>
</rss>

