<?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 to add P-value and parameter estimates in the figure using sgpanel function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-P-value-and-parameter-estimates-in-the-figure-using/m-p/819858#M323601</link>
    <description>&lt;P&gt;I have two continuous variables and one category variable, so I use &lt;EM&gt;sgpanel&lt;/EM&gt; to plot separated figures. I'd like to how I can add a P-value and parameter estimates to the figures. I tried the way I used in &lt;EM&gt;sgplot&lt;/EM&gt; function but it didn't work. Below is what is in SAS errors, warnings, notes. Does anyone know a solution?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;PROC SGPANEL DATA=lab10;&lt;/DIV&gt;&lt;DIV class=""&gt;74 format PREVCHD PREVCHD.;&lt;/DIV&gt;&lt;DIV class=""&gt;75 PANELBY PREVCHD;&lt;/DIV&gt;&lt;DIV class=""&gt;76 reg X = totchol Y = sysbp / cli clm markerattrs=(color=navy size=6 symbol=circle)&lt;/DIV&gt;&lt;DIV class=""&gt;77 lineattrs=(color=red thickness=0.25) LEGENDLABEL="Regression Trendline";&lt;/DIV&gt;&lt;DIV class=""&gt;78 colaxis label='Serum Total Cholesterol (mg/dL)' labelattrs=(color=black size=11pt)&lt;/DIV&gt;&lt;DIV class=""&gt;79 valueattrs=(color=black size=9pt) values=(50 to 700 by 50);&lt;/DIV&gt;&lt;DIV class=""&gt;80 rowaxis label='Systolic Blood Pressure (mmHg)'&lt;/DIV&gt;&lt;DIV class=""&gt;81 labelattrs=(color=black size=11pt) valueattrs=(color=black size=9pt)&lt;/DIV&gt;&lt;DIV class=""&gt;82 values=(50 to 300 by 25);&lt;/DIV&gt;&lt;DIV class=""&gt;83 inset 'Intercept = &amp;amp;Int1' 'Slope = &amp;amp;Slope1' 'R-Square = &amp;amp;RSQ1' 'Adj R-Square = &amp;amp;ARSQ1' /&lt;/DIV&gt;&lt;DIV class=""&gt;___________________&lt;/DIV&gt;&lt;DIV class=""&gt;22&lt;/DIV&gt;&lt;DIV class=""&gt;76&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, ;, /, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_.&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/DIV&gt;&lt;DIV class=""&gt;84 border title='Parameter Estimates' position=topright textattrs=(color=black size=8pt);&lt;/DIV&gt;&lt;DIV class=""&gt;85 TITLE height=11pt 'Serum Total Cholesterol by Systolic BP for Patients in different CHD Status';&lt;/DIV&gt;&lt;DIV class=""&gt;86 RUN;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2022 23:58:16 GMT</pubDate>
    <dc:creator>LarissaW</dc:creator>
    <dc:date>2022-06-22T23:58:16Z</dc:date>
    <item>
      <title>How to add P-value and parameter estimates in the figure using sgpanel function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-P-value-and-parameter-estimates-in-the-figure-using/m-p/819858#M323601</link>
      <description>&lt;P&gt;I have two continuous variables and one category variable, so I use &lt;EM&gt;sgpanel&lt;/EM&gt; to plot separated figures. I'd like to how I can add a P-value and parameter estimates to the figures. I tried the way I used in &lt;EM&gt;sgplot&lt;/EM&gt; function but it didn't work. Below is what is in SAS errors, warnings, notes. Does anyone know a solution?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;PROC SGPANEL DATA=lab10;&lt;/DIV&gt;&lt;DIV class=""&gt;74 format PREVCHD PREVCHD.;&lt;/DIV&gt;&lt;DIV class=""&gt;75 PANELBY PREVCHD;&lt;/DIV&gt;&lt;DIV class=""&gt;76 reg X = totchol Y = sysbp / cli clm markerattrs=(color=navy size=6 symbol=circle)&lt;/DIV&gt;&lt;DIV class=""&gt;77 lineattrs=(color=red thickness=0.25) LEGENDLABEL="Regression Trendline";&lt;/DIV&gt;&lt;DIV class=""&gt;78 colaxis label='Serum Total Cholesterol (mg/dL)' labelattrs=(color=black size=11pt)&lt;/DIV&gt;&lt;DIV class=""&gt;79 valueattrs=(color=black size=9pt) values=(50 to 700 by 50);&lt;/DIV&gt;&lt;DIV class=""&gt;80 rowaxis label='Systolic Blood Pressure (mmHg)'&lt;/DIV&gt;&lt;DIV class=""&gt;81 labelattrs=(color=black size=11pt) valueattrs=(color=black size=9pt)&lt;/DIV&gt;&lt;DIV class=""&gt;82 values=(50 to 300 by 25);&lt;/DIV&gt;&lt;DIV class=""&gt;83 inset 'Intercept = &amp;amp;Int1' 'Slope = &amp;amp;Slope1' 'R-Square = &amp;amp;RSQ1' 'Adj R-Square = &amp;amp;ARSQ1' /&lt;/DIV&gt;&lt;DIV class=""&gt;___________________&lt;/DIV&gt;&lt;DIV class=""&gt;22&lt;/DIV&gt;&lt;DIV class=""&gt;76&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, ;, /, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_.&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/DIV&gt;&lt;DIV class=""&gt;84 border title='Parameter Estimates' position=topright textattrs=(color=black size=8pt);&lt;/DIV&gt;&lt;DIV class=""&gt;85 TITLE height=11pt 'Serum Total Cholesterol by Systolic BP for Patients in different CHD Status';&lt;/DIV&gt;&lt;DIV class=""&gt;86 RUN;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 23:58:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-P-value-and-parameter-estimates-in-the-figure-using/m-p/819858#M323601</guid>
      <dc:creator>LarissaW</dc:creator>
      <dc:date>2022-06-22T23:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to add P-value and parameter estimates in the figure using sgpanel function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-P-value-and-parameter-estimates-in-the-figure-using/m-p/819862#M323602</link>
      <description>&lt;P&gt;The SGPANEL Inset statement expects a VARIABLE, or multiple variables, to hold values to display in each panel and should hold the value(s) for the panel created for the PanelBy variable(s). This is one of the statements that behaves quite differently between Sgplot and Sgpanel.&lt;/P&gt;
&lt;P&gt;If it is single set of text to display look at using an Annotate dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW that text would not resolve correctly in Sgplot either. Macro variables need to be inside double quotes, not the single quotes you used.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 00:29:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-P-value-and-parameter-estimates-in-the-figure-using/m-p/819862#M323602</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-06-23T00:29:55Z</dc:date>
    </item>
  </channel>
</rss>

