<?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 can I generate a table showing all reference categories? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-generate-a-table-showing-all-reference-categories/m-p/833741#M329605</link>
    <description>Thanks Reeza for your time - I really appreciate.</description>
    <pubDate>Thu, 15 Sep 2022 21:43:05 GMT</pubDate>
    <dc:creator>khalidamin</dc:creator>
    <dc:date>2022-09-15T21:43:05Z</dc:date>
    <item>
      <title>How can I generate a table showing all reference categories?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-generate-a-table-showing-all-reference-categories/m-p/833720#M329597</link>
      <description>&lt;P&gt;See the attached file. Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 20:05:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-generate-a-table-showing-all-reference-categories/m-p/833720#M329597</guid>
      <dc:creator>khalidamin</dc:creator>
      <dc:date>2022-09-15T20:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I generate a table showing all reference categories?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-generate-a-table-showing-all-reference-categories/m-p/833729#M329600</link>
      <description>Not sure what your question is, I see output from proc logistic...</description>
      <pubDate>Thu, 15 Sep 2022 20:20:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-generate-a-table-showing-all-reference-categories/m-p/833729#M329600</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-09-15T20:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I generate a table showing all reference categories?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-generate-a-table-showing-all-reference-categories/m-p/833730#M329601</link>
      <description>I want to generate a table as shown is the attached file using SAS</description>
      <pubDate>Thu, 15 Sep 2022 20:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-generate-a-table-showing-all-reference-categories/m-p/833730#M329601</guid>
      <dc:creator>khalidamin</dc:creator>
      <dc:date>2022-09-15T20:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I generate a table showing all reference categories?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-generate-a-table-showing-all-reference-categories/m-p/833732#M329602</link>
      <description>But the point estimate isn't 1, it's 0.</description>
      <pubDate>Thu, 15 Sep 2022 20:45:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-generate-a-table-showing-all-reference-categories/m-p/833732#M329602</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-09-15T20:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I generate a table showing all reference categories?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-generate-a-table-showing-all-reference-categories/m-p/833733#M329603</link>
      <description>Oh yes, it’s zero. Sorry for the typo. &lt;BR /&gt;Is there any option in proc logistic to display reference category?</description>
      <pubDate>Thu, 15 Sep 2022 20:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-generate-a-table-showing-all-reference-categories/m-p/833733#M329603</guid>
      <dc:creator>khalidamin</dc:creator>
      <dc:date>2022-09-15T20:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I generate a table showing all reference categories?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-generate-a-table-showing-all-reference-categories/m-p/833734#M329604</link>
      <description>Not as far as I know, you'll have to manually add those rows in, especially as the reference level can vary depending on the code so there's not an easy way to automate that ... at least that I can think of at the moment.</description>
      <pubDate>Thu, 15 Sep 2022 20:57:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-generate-a-table-showing-all-reference-categories/m-p/833734#M329604</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-09-15T20:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I generate a table showing all reference categories?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-generate-a-table-showing-all-reference-categories/m-p/833741#M329605</link>
      <description>Thanks Reeza for your time - I really appreciate.</description>
      <pubDate>Thu, 15 Sep 2022 21:43:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-generate-a-table-showing-all-reference-categories/m-p/833741#M329605</guid>
      <dc:creator>khalidamin</dc:creator>
      <dc:date>2022-09-15T21:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I generate a table showing all reference categories?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-generate-a-table-showing-all-reference-categories/m-p/833981#M329720</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60337"&gt;@khalidamin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you just need a dataset containing class variable names and their reference categories (which you could then "interleave" with an odds ratio table where the reference categories are omitted), you can use the &lt;FONT face="courier new,courier"&gt;ClassLevelInfo&lt;/FONT&gt; ODS output dataset:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output ClassLevelInfo=cli;
proc logistic ...;
...
run;

data reflevels(keep=clvar value);
set cli;
if class ne ' ' then clvar=class;
if max(of x:)=0;
retain clvar;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you could start with the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;OddsRatios&lt;/FONT&gt;&amp;nbsp;ODS output dataset. But unfortunately variable &lt;FONT face="courier new,courier"&gt;Effect&lt;/FONT&gt; in this dataset contains concatenated strings like&amp;nbsp;&lt;FONT face="courier new,courier"&gt;'gender&amp;nbsp; &amp;nbsp; 1 vs 0'&lt;/FONT&gt; so that you would need to work with character functions such as SCAN to extract variable names and values. This might become difficult in general, e.g., if values (or even variable names) contain blanks or the substring "vs", etc.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 14:14:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-generate-a-table-showing-all-reference-categories/m-p/833981#M329720</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-09-17T14:14:30Z</dc:date>
    </item>
  </channel>
</rss>

