<?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 get line at geometric mean with 95% CI in scatter plot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-line-at-geometric-mean-with-95-CI-in-scatter-plot/m-p/872939#M23746</link>
    <description>&lt;P&gt;Please provide the formats &lt;EM&gt;&lt;STRONG&gt;paramn&lt;/STRONG&gt;&lt;/EM&gt; and &lt;EM&gt;&lt;STRONG&gt;armn&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2023 23:20:11 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2023-04-28T23:20:11Z</dc:date>
    <item>
      <title>How to get line at geometric mean with 95% CI in scatter plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-line-at-geometric-mean-with-95-CI-in-scatter-plot/m-p/872891#M23745</link>
      <description>&lt;P&gt;I want to get a plot like this, with a line at the mean (or geometric mean) and bars for the 95% CI. I'm unsure how to get just the line though.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariko5797_0-1682705879991.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83386iFD5D0822B68C8215/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariko5797_0-1682705879991.png" alt="mariko5797_0-1682705879991.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _Dummy;
   	do USUBJID = 1 to 9;
   	do ARMN= 1 to 5;
   	do ATPTN= 1, 8, 29, 36, 57, 64, 85, 180, 181, 187, 208, 304;
 	do PARAMN = 1 to 3; output; end;
	output;
   	end; end; end;
data Dummy;
 set _Dummy;
 call streaminit(5797);
 	ATPT = 'Study Day '||strip(ATPTN);  
 	if (ATPTN in (64 85 181) and ARMN = 3)|(ATPTN in (180 187 208 304) and ARMN ^= 3) then delete;

	AVAL = rand("integer", 100, 300);	/*AVAL=Analysis Value*/
	LAVAL = log(AVAL);					/*LAVAL=Log Analysis Value*/
run;

proc sgpanel data= Dummy noautolegend;
 panelby ATPT / novarname onepanel columns= 3 headerattrs= (family= "times new roman" size= 9) headerbackcolor= "white" sort= data;
 scatter x= PARAMN y= AVAL 	/ group= ARMN;
 vbox AVAL					/ group= ARMN category= PARAMN nofill;
 rowaxis label= "Worm Numbers";
 format PARAMN paramn. ARMN armn.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 18:26:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-line-at-geometric-mean-with-95-CI-in-scatter-plot/m-p/872891#M23745</guid>
      <dc:creator>mariko5797</dc:creator>
      <dc:date>2023-04-28T18:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get line at geometric mean with 95% CI in scatter plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-line-at-geometric-mean-with-95-CI-in-scatter-plot/m-p/872939#M23746</link>
      <description>&lt;P&gt;Please provide the formats &lt;EM&gt;&lt;STRONG&gt;paramn&lt;/STRONG&gt;&lt;/EM&gt; and &lt;EM&gt;&lt;STRONG&gt;armn&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 23:20:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-line-at-geometric-mean-with-95-CI-in-scatter-plot/m-p/872939#M23746</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2023-04-28T23:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get line at geometric mean with 95% CI in scatter plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-line-at-geometric-mean-with-95-CI-in-scatter-plot/m-p/872970#M23747</link>
      <description>&lt;P&gt;Your code shows a box plot, but that is not part of your description or the figure you say you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you clarify, do you want a plot that shows (for each group)&lt;/P&gt;
&lt;P&gt;1. jittered points that shows individual values&lt;/P&gt;
&lt;P&gt;2. an estimate of central location, such as a mean&lt;/P&gt;
&lt;P&gt;3. a confidence interval for the mean&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2023 13:52:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-line-at-geometric-mean-with-95-CI-in-scatter-plot/m-p/872970#M23747</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-04-29T13:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get line at geometric mean with 95% CI in scatter plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-line-at-geometric-mean-with-95-CI-in-scatter-plot/m-p/872982#M23748</link>
      <description>Yes to all. I’d like a jitter plot with individual measurements for each&lt;BR /&gt;group; a vertical line to represent the geometric mean; and 95% CI Of the&lt;BR /&gt;GM.&lt;BR /&gt;&lt;BR /&gt;I’d pretty much like a graph like the example figure. I say GM instead of&lt;BR /&gt;arithmetic mean b/c of small sample size.&lt;BR /&gt;</description>
      <pubDate>Sat, 29 Apr 2023 15:16:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-line-at-geometric-mean-with-95-CI-in-scatter-plot/m-p/872982#M23748</guid>
      <dc:creator>mariko5797</dc:creator>
      <dc:date>2023-04-29T15:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get line at geometric mean with 95% CI in scatter plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-line-at-geometric-mean-with-95-CI-in-scatter-plot/m-p/872985#M23749</link>
      <description>&lt;P&gt;In the picture, there is one class variable per panel. Do you want a panel that shows the ATPT values, and within each panel the groups are determined by the ARMN variable?&amp;nbsp; It looks like the PARMN variable is longitudinal (like different visits) and will be aggregated over?&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2023 15:37:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-line-at-geometric-mean-with-95-CI-in-scatter-plot/m-p/872985#M23749</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-04-29T15:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get line at geometric mean with 95% CI in scatter plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-line-at-geometric-mean-with-95-CI-in-scatter-plot/m-p/873034#M23750</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.heart(obs=1000);
 keep bp_status weight;
run;

proc sort data=have;by  bp_status;run;
ods select none;
ods output ConfLimits=ConfLimits ;
proc ttest data=have dist=lognormal;
by bp_status;
var weight;
run;
ods select all;

data want;
 set have ConfLimits(keep=bp_status GeomMean LowerCLGeomMean UpperCLGeomMean);
run;
proc sgplot data=want;
scatter x=bp_status y=weight/jitter markerattrs=(symbol=circlefilled size=4) transparency=0.6 group=bp_Status;
scatter x=bp_Status y=GeomMean/yerrorlower=LowerCLGeomMean yerrorupper=UpperCLGeomMean 
ERRORBARATTRS=(color=black) ERRORCAPSCALE=4 markerattrs=(size=0);
highlow x=bp_status high=GeomMean low=GeomMean/type=bar lineattrs=(thickness=2) barwidth=0.6;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1682827264766.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83424i52CC1C49F24CE8EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1682827264766.png" alt="Ksharp_0-1682827264766.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 04:02:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-line-at-geometric-mean-with-95-CI-in-scatter-plot/m-p/873034#M23750</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-04-30T04:02:44Z</dc:date>
    </item>
  </channel>
</rss>

