<?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: plot interaction with error bars in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/plot-interaction-with-error-bars/m-p/869836#M343592</link>
    <description>&lt;P&gt;Hi sir,&lt;/P&gt;&lt;P&gt;Its mentionned i used proc hpmixed fro my muxed model analysis, the interaction is estimate by&amp;nbsp; lsmeans function, i create the mean +/- estimate to output my lower and upper limit. all detail are in the shared code. but i will look at your propositon effectplot , which i thing good alternative&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you sir for youyr help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AMEUR&lt;/P&gt;</description>
    <pubDate>Fri, 14 Apr 2023 15:29:35 GMT</pubDate>
    <dc:creator>Ameurgen</dc:creator>
    <dc:date>2023-04-14T15:29:35Z</dc:date>
    <item>
      <title>plot interaction with error bars</title>
      <link>https://communities.sas.com/t5/SAS-Programming/plot-interaction-with-error-bars/m-p/869793#M343572</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Sas community;&lt;/P&gt;&lt;P&gt;I need help to plot my output LSMEANS form proc hpmixed , your can comment the code below , for the first plot estimate vs DAMDIM (Axe1) and Mean for AXe2 its work using proc gplot , but when i used interaction BHB*DAMDIM, i cant figure out how the plot should be, alos, i am thing to plot them seperately but i don't now .&lt;/P&gt;&lt;P&gt;Thank you for your helping me&lt;/P&gt;&lt;P&gt;********************************************&lt;/P&gt;&lt;P&gt;without interaction&amp;nbsp;&lt;/P&gt;&lt;P&gt;**************************&lt;/P&gt;&lt;P&gt;/* Dam days in milk effect **/&lt;BR /&gt;data lsmns12;&lt;BR /&gt;set lsmns11;&lt;BR /&gt;IF (Effect eq 'Dam_DIM');&lt;BR /&gt;Dam_DIM = Dam_DIM ;&lt;BR /&gt;mean = Estimate;&lt;BR /&gt;output;&lt;BR /&gt;mean = Estimate - StdErr;&lt;BR /&gt;output;&lt;BR /&gt;mean = Estimate + StdErr;&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/***/&lt;BR /&gt;axis1 order=(30 to 240 by 10);&lt;BR /&gt;axis2 label=(angle=90) order=(1.5 to 2.6 by 0.1);&lt;BR /&gt;symbol1 interpol=none color=blue value=dot line=2 ;&lt;BR /&gt;symbol2 interpol=hiloctj color=red line=1 height=1.5;&lt;/P&gt;&lt;P&gt;title 'daughter Total Services vs dam_days_in_milk at daughter conception, Parity 1';&lt;BR /&gt;proc gplot data=lsmns12;&lt;BR /&gt;plot Estimate *Dam_DIM/vaxis=axis2 haxis=axis1 ;&lt;BR /&gt;plot2 Mean*Dam_DIM/vaxis=axis2 ;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;*******************************&lt;/P&gt;&lt;P&gt;with interaction&lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Dam days in milk and BHB level interaction effect **/&lt;BR /&gt;data lsmns11_INTR1;&lt;BR /&gt;set lsmns11_INTR;&lt;BR /&gt;IF (Effect eq 'DamDIM*BHB');&lt;BR /&gt;DAM_DIM_BHB_Intr = 'DamDIM*BHB' ;&lt;BR /&gt;mean = Estimate;&lt;BR /&gt;output;&lt;BR /&gt;mean = Estimate - StdErr;&lt;BR /&gt;output;&lt;BR /&gt;mean = Estimate + StdErr;&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/***/&lt;BR /&gt;axis1 order=(30 to 250 by 10);&lt;BR /&gt;axis2 order=(0 to 4 by 1);&lt;BR /&gt;axis3 label=(angle=90) order=(-2 to 8 by 1 );&lt;BR /&gt;symbol1 interpol=none color=blue value=dot line=2 ;&lt;BR /&gt;symbol2 interpol=hiloctj color=red line=1 height=1.5;&lt;BR /&gt;symbol3 interpol=hiloctj color=red line=1 height=1.5;&lt;/P&gt;&lt;P&gt;title 'daughter Total Services vs dam_DIM and BHB level interaction, Parity 1';&lt;BR /&gt;proc gplot data=lsmns11_INTR1;&lt;BR /&gt;plot Estimate * Dam_Days_in_MILK /vaxis=axis2 haxis=axis1 ;&lt;BR /&gt;plot2 Mean*BHB_level/vaxis=axis3 haxis=axis1;&lt;BR /&gt;*plot2 Mean*Dam_Days_in_MILK/vaxis=axis2 ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 15:30:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/plot-interaction-with-error-bars/m-p/869793#M343572</guid>
      <dc:creator>Ameurgen</dc:creator>
      <dc:date>2023-04-14T15:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: plot interaction with error bars</title>
      <link>https://communities.sas.com/t5/SAS-Programming/plot-interaction-with-error-bars/m-p/869823#M343583</link>
      <description>&lt;P&gt;You don't really say what PROC you use to estimate the interactions, and obtain error estimates from — which are needed to get confidence interval "error bars". That information would be very helpful. Nevertheless, the EFFECTPLOT statement in many PROCs can do this (&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_introcom_sect032.htm" target="_self"&gt;example&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 15:06:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/plot-interaction-with-error-bars/m-p/869823#M343583</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-04-14T15:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: plot interaction with error bars</title>
      <link>https://communities.sas.com/t5/SAS-Programming/plot-interaction-with-error-bars/m-p/869836#M343592</link>
      <description>&lt;P&gt;Hi sir,&lt;/P&gt;&lt;P&gt;Its mentionned i used proc hpmixed fro my muxed model analysis, the interaction is estimate by&amp;nbsp; lsmeans function, i create the mean +/- estimate to output my lower and upper limit. all detail are in the shared code. but i will look at your propositon effectplot , which i thing good alternative&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you sir for youyr help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AMEUR&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 15:29:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/plot-interaction-with-error-bars/m-p/869836#M343592</guid>
      <dc:creator>Ameurgen</dc:creator>
      <dc:date>2023-04-14T15:29:35Z</dc:date>
    </item>
  </channel>
</rss>

