<?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: Help with forest plot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-forest-plot/m-p/710648#M20866</link>
    <description>&lt;P&gt;Lol by TIA, I meant thanks in advance. And, no I am newer to proc logistic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=dsn;&lt;BR /&gt;by subgroupvar;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc logistic data=dsn plots(only)=effect(x=(ordinal_visit) sliceby=treatment*severity_baseline individual connect alpha=0.5);&lt;BR /&gt;class severity_baseline(ref=first) treatment baseline_Steroid/param=ref;&lt;BR /&gt;model ordinal_visit=treatment baseline_steroid;&lt;BR /&gt;oddsratio treatmnet;&lt;BR /&gt;ods output oddsratioswal=ORest;&lt;BR /&gt;by subgroupvar;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically, I will put this in a macro and pass in the subgroup var as a parameter and name the datasets separately and then stack them? To get overall, you just exclude the by subgroupvar? Then stack all these together and then I can use Sanjay's program?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2021 18:04:24 GMT</pubDate>
    <dc:creator>tarheel13</dc:creator>
    <dc:date>2021-01-11T18:04:24Z</dc:date>
    <item>
      <title>Help with forest plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-forest-plot/m-p/710536#M20864</link>
      <description>&lt;P&gt;Okay, so I have never made forest plot before. I have googled it extensively and keep finding this code from Sanjay Mantage.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/files/2016/05/Subgrouped_Forest_Plot_SG_94.txt" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/files/2016/05/Subgrouped_Forest_Plot_SG_94.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am a little bit confused about how to build the dataset forest_subgroup. So do I just have to output all the odds ratios for my subgroups from proc logistic and stack them together in one dataset?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My shell is not very detailed. It just has a skeleton of a forest plot by subgroup and says odds ratio and confidence intervals will be presented as labels.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;TIA!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 13:07:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-forest-plot/m-p/710536#M20864</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-01-11T13:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with forest plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-forest-plot/m-p/710603#M20865</link>
      <description>&lt;P&gt;Hi Tia,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you're right. If you're calculating odd ratios, then you can use Proc Logistic first to obtain your odds ratios (for each subgroup). Have you used that procedure before?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kriss&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 16:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-forest-plot/m-p/710603#M20865</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2021-01-11T16:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with forest plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-forest-plot/m-p/710648#M20866</link>
      <description>&lt;P&gt;Lol by TIA, I meant thanks in advance. And, no I am newer to proc logistic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=dsn;&lt;BR /&gt;by subgroupvar;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc logistic data=dsn plots(only)=effect(x=(ordinal_visit) sliceby=treatment*severity_baseline individual connect alpha=0.5);&lt;BR /&gt;class severity_baseline(ref=first) treatment baseline_Steroid/param=ref;&lt;BR /&gt;model ordinal_visit=treatment baseline_steroid;&lt;BR /&gt;oddsratio treatmnet;&lt;BR /&gt;ods output oddsratioswal=ORest;&lt;BR /&gt;by subgroupvar;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically, I will put this in a macro and pass in the subgroup var as a parameter and name the datasets separately and then stack them? To get overall, you just exclude the by subgroupvar? Then stack all these together and then I can use Sanjay's program?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 18:04:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-forest-plot/m-p/710648#M20866</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-01-11T18:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with forest plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-forest-plot/m-p/710669#M20868</link>
      <description>&lt;P&gt;Oh lol!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes you're right, to get the overall, you don't need to use the BY statement. Yes, it's just a case of stacking all your odd ratio datasets together, and in the right order. You may have to do some additional renaming so that you get the correct Subgroup headers, and subgroups. After you have done that you should be able to use Sanjay's program to guide you to produce the Forest Plot. If you need any more assistance, just ask.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kriss&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 19:33:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-forest-plot/m-p/710669#M20868</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2021-01-11T19:33:19Z</dc:date>
    </item>
  </channel>
</rss>

