<?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: Not receiving RELRISK plot in frequency table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Not-receiving-RELRISK-plot-in-frequency-table/m-p/753387#M237431</link>
    <description>&lt;P&gt;The odds ratio and relative risks are provided for 2x2 tables (tables that contain two rows and two columns). It looks like your table is 3x2.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jul 2021 19:22:19 GMT</pubDate>
    <dc:creator>Watts</dc:creator>
    <dc:date>2021-07-11T19:22:19Z</dc:date>
    <item>
      <title>Not receiving RELRISK plot in frequency table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-receiving-RELRISK-plot-in-frequency-table/m-p/753384#M237429</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, I am not receiving the appropriate&amp;nbsp;&lt;STRONG&gt;Odds Ratio and Relative Risks&lt;/STRONG&gt; table in my SAS below when using the&amp;nbsp;&lt;STRONG&gt;ameshousing3.sas7bdat&lt;/STRONG&gt; dataset. The expectation is that SAS produces the table in the&amp;nbsp;&lt;STRONG&gt;Results Viewer&lt;/STRONG&gt;. However, that is not happening in my use case. Does anyone know what I am doing wrong? I have attached the SAS dataset to this question along with a screenshot of the output that I am receiving.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sample_output.PNG" style="width: 554px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61112i339C7D4020619131/image-size/large?v=v2&amp;amp;px=999" role="button" title="sample_output.PNG" alt="sample_output.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PROC FREQ DATA = WORK.ameshousing3;
	TABLES fireplaces * bonus / CHISQ RELRISK NOROW NOCOL NOPERCENT;
	FORMAT bonus bonusfmt.;
	TITLE "Association Analysis - Chi-Sq and Odds Ratio";
RUN;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jul 2021 18:35:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-receiving-RELRISK-plot-in-frequency-table/m-p/753384#M237429</guid>
      <dc:creator>Vicente95</dc:creator>
      <dc:date>2021-07-11T18:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Not receiving RELRISK plot in frequency table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-receiving-RELRISK-plot-in-frequency-table/m-p/753387#M237431</link>
      <description>&lt;P&gt;The odds ratio and relative risks are provided for 2x2 tables (tables that contain two rows and two columns). It looks like your table is 3x2.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jul 2021 19:22:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-receiving-RELRISK-plot-in-frequency-table/m-p/753387#M237431</guid>
      <dc:creator>Watts</dc:creator>
      <dc:date>2021-07-11T19:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Not receiving RELRISK plot in frequency table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-receiving-RELRISK-plot-in-frequency-table/m-p/753388#M237432</link>
      <description>&lt;P&gt;Ok, thank you for the response. How can I fix it?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jul 2021 19:45:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-receiving-RELRISK-plot-in-frequency-table/m-p/753388#M237432</guid>
      <dc:creator>Vicente95</dc:creator>
      <dc:date>2021-07-11T19:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Not receiving RELRISK plot in frequency table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-receiving-RELRISK-plot-in-frequency-table/m-p/753389#M237433</link>
      <description>&lt;P&gt;You can decide what are the objectives, what are the appropriate analyses, what do you need to compute, and so on.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sciencing.com/calculate-odds-ratio-contingency-table-8782587.html" target="_self"&gt;https://sciencing.com/calculate-odds-ratio-contingency-table-8782587.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jul 2021 20:06:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-receiving-RELRISK-plot-in-frequency-table/m-p/753389#M237433</guid>
      <dc:creator>Watts</dc:creator>
      <dc:date>2021-07-11T20:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Not receiving RELRISK plot in frequency table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-receiving-RELRISK-plot-in-frequency-table/m-p/753391#M237434</link>
      <description>&lt;P&gt;You can also get odds ratio from proc logistic.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on ;
proc logistic data=stat1.ameshousing3 plots(only)=(effect oddsratio (type=horizontalstat));
	model bonus(event="1") = fireplaces / clodds=both;
run;
ods graphics off;
 &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Jul 2021 20:15:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-receiving-RELRISK-plot-in-frequency-table/m-p/753391#M237434</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-07-11T20:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Not receiving RELRISK plot in frequency table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-receiving-RELRISK-plot-in-frequency-table/m-p/753392#M237435</link>
      <description>&lt;P&gt;Oh wow! Thank you for letting me know. On the same topic of PROC LOGISTIC, how can I fit a binary logistic regression model with bonus as the outcome variable and basement_area, fireplaces, and lot_shape2 as the predictor variables? In this model, I want to specify "Regular" as the reference group for the lot_shape_2 variable and "0" as the reference level for the fireplaces variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would it look something like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC LOGISTIC DATA = WORK.ameshousing3
	PLOTS(ONLY) = (EFFECT (CLBAND X = (FIREPLACES)) ODDSRATIO (TYPE = HORIZONTALSTAT));
	CLASS lot_shape_2 (PARAM = REF REF = 'Regular') fireplaces (PARAM = REF REF = '0');
	MLogit1: MODEL bonus(event='1') = basement_area lot_shape_2 fireplaces / clodds=pl;
	UNITS fireplaces=1;
	ODDSRATIO 'Comparisons of Type' lot_shape_2 / DIFF=ALL CL=PL;
	TITLE 'Bonus Eligibility Status Model';
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Jul 2021 20:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-receiving-RELRISK-plot-in-frequency-table/m-p/753392#M237435</guid>
      <dc:creator>Vicente95</dc:creator>
      <dc:date>2021-07-11T20:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Not receiving RELRISK plot in frequency table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-receiving-RELRISK-plot-in-frequency-table/m-p/753393#M237436</link>
      <description>&lt;P&gt;Looks right.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jul 2021 20:42:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-receiving-RELRISK-plot-in-frequency-table/m-p/753393#M237436</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-07-11T20:42:17Z</dc:date>
    </item>
  </channel>
</rss>

