<?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: Odds ratios and missing data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-and-missing-data/m-p/894290#M44309</link>
    <description>&lt;P&gt;mgmt_flag doesn't have any missing -- all values are either 0 or 1. When comparing records with missing SI_flag to mgmt_flag, sometimes mgmt_flag is 0 and sometimes it's 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the file version where SI_flag is set to missing, there is a note in the log. The number is the same number of records where SI_flag is missing&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Note: 5389 observations were deleted due to missing values for the response or explanatory variables.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When running the version with missing set to -1, the odds ratio output shows this as point estimate (confidence interval):&lt;/P&gt;
&lt;P&gt;SI_flag -1 vs 0 0.968 (0.897 1.044 )&lt;BR /&gt;SI_flag 1 vs 0 0.742 (0.608 0.906)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When running the version recoded back to missing, the odds ratio output shows this as point estimate (confidence interval):&lt;/P&gt;
&lt;P&gt;SI_flag 1 vs 0 0.742 (0.608 0.906)&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2023 15:32:34 GMT</pubDate>
    <dc:creator>Wolverine</dc:creator>
    <dc:date>2023-09-14T15:32:34Z</dc:date>
    <item>
      <title>Odds ratios and missing data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-and-missing-data/m-p/894265#M44304</link>
      <description>&lt;P&gt;I'm calculating odds ratios between two binary (yes/no) variables. At some point in the process, the missing values for one of the variables were recoded to -1 and was left this way when the odds ratios were run. Fearing this may lead to inaccurate results, I recoded the -1's back to missing, ran frequencies to verify all -1's were now missing, and reran the odds ratios. The results didn't change at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After thinking about it, I believe the explanation is that the value of -1 would affect stats like mean and standard deviation. But for odds ratios, these variables are being treated as categorical rather than continuous because there are only 3 levels. Whether the missing cases are assigned a category ("-1") or just left as missing doesn't affect the odds for the "0" and "1" categories. Is my thinking correct, or is there something else going on here?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 14:05:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-and-missing-data/m-p/894265#M44304</guid>
      <dc:creator>Wolverine</dc:creator>
      <dc:date>2023-09-14T14:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Odds ratios and missing data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-and-missing-data/m-p/894268#M44305</link>
      <description>&lt;P&gt;Probably should provide the code that you were using and indicate the variable(s) of interest. There are several procedures that calculate odds ratios and may behave a bit differently depending on procedure and options chosen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, do you have any sort of custom format applied to the variable? A variable that plays a group role could well not show a difference if the definition for one of the ranges of a custom format looked like "low - 1" or similar.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 14:13:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-and-missing-data/m-p/894268#M44305</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-09-14T14:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Odds ratios and missing data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-and-missing-data/m-p/894271#M44307</link>
      <description>&lt;P&gt;No custom formats have been applied. "SI_flag" is the variable of interest. Here is the code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC LOGISTIC data=analysis_for_model; CLASS SI_flag (ref="0");
	MODEL mgmt_flag(EVENT='1')=SI_flag; 
    ODS output oddsratios=SI_flag_OR;
RUN;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Sep 2023 14:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-and-missing-data/m-p/894271#M44307</guid>
      <dc:creator>Wolverine</dc:creator>
      <dc:date>2023-09-14T14:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Odds ratios and missing data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-and-missing-data/m-p/894282#M44308</link>
      <description>&lt;P&gt;Okay nothing complex.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you verify that your original values of -1 actually have a value for the dependent variable? If what ever cause the -1 or original missing for SI_flag is associated with missing value for Mgmt_flag then the observations would not have been used as there was nothing for the calculation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check your logs for running with both sets of data and see how many observations are read and how many used by the model. If the number didn't change I strongly suspect that the dependent is missing as well.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 15:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-and-missing-data/m-p/894282#M44308</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-09-14T15:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Odds ratios and missing data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-and-missing-data/m-p/894290#M44309</link>
      <description>&lt;P&gt;mgmt_flag doesn't have any missing -- all values are either 0 or 1. When comparing records with missing SI_flag to mgmt_flag, sometimes mgmt_flag is 0 and sometimes it's 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the file version where SI_flag is set to missing, there is a note in the log. The number is the same number of records where SI_flag is missing&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Note: 5389 observations were deleted due to missing values for the response or explanatory variables.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When running the version with missing set to -1, the odds ratio output shows this as point estimate (confidence interval):&lt;/P&gt;
&lt;P&gt;SI_flag -1 vs 0 0.968 (0.897 1.044 )&lt;BR /&gt;SI_flag 1 vs 0 0.742 (0.608 0.906)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When running the version recoded back to missing, the odds ratio output shows this as point estimate (confidence interval):&lt;/P&gt;
&lt;P&gt;SI_flag 1 vs 0 0.742 (0.608 0.906)&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 15:32:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-and-missing-data/m-p/894290#M44309</guid>
      <dc:creator>Wolverine</dc:creator>
      <dc:date>2023-09-14T15:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Odds ratios and missing data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-and-missing-data/m-p/894309#M44310</link>
      <description>&lt;P&gt;You didn't change the relative counts of 1 vs 0. Those stayed the same. If you had changed the -1 to 0 the ratios would change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 16:28:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-and-missing-data/m-p/894309#M44310</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-09-14T16:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Odds ratios and missing data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-and-missing-data/m-p/894314#M44311</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;You didn't change the relative counts of 1 vs 0. Those stayed the same. If you had changed the -1 to 0 the ratios would change.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think I understand now... because the relative counts didn't change, the odds of having a value of 1 vs 0 didn't change either. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 16:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-and-missing-data/m-p/894314#M44311</guid>
      <dc:creator>Wolverine</dc:creator>
      <dc:date>2023-09-14T16:39:37Z</dc:date>
    </item>
  </channel>
</rss>

