<?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: OR in proc logistic in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/OR-in-proc-logistic/m-p/540416#M7224</link>
    <description>&lt;P&gt;Thank you very much for your answer.&lt;/P&gt;&lt;P&gt;What about using this in a multivariable model? Should I transform all continuous variables using log(X)/log(2)?&lt;/P&gt;&lt;P&gt;In a univariate model&amp;nbsp; = X compared to model = Log(X)/Log(2), the p-value also changes.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2019 12:20:42 GMT</pubDate>
    <dc:creator>HansP</dc:creator>
    <dc:date>2019-03-05T12:20:42Z</dc:date>
    <item>
      <title>OR in proc logistic</title>
      <link>https://communities.sas.com/t5/New-SAS-User/OR-in-proc-logistic/m-p/540371#M7221</link>
      <description>&lt;P&gt;Is it possible to calculate the OR for the risk of doubling the value of X?&lt;/P&gt;&lt;P&gt;I know that I can use UNITS = 1 or UNITS = SD, but I don't understand that people are reporting ORs for doubling X, as doubling might be from X = 1 to X = 2 (that's a one unit change) but also e.g. from X = 2 to X = 4 (which is a 2 unit change). This would give different ORs. Therefore, I wonder if it is possible to calculated just one OR for doubling a specific covariate.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 08:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/OR-in-proc-logistic/m-p/540371#M7221</guid>
      <dc:creator>HansP</dc:creator>
      <dc:date>2019-03-05T08:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: OR in proc logistic</title>
      <link>https://communities.sas.com/t5/New-SAS-User/OR-in-proc-logistic/m-p/540403#M7223</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265197"&gt;@HansP&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could derive a new covariate L=log(X)/log(2) and then compute the odds ratio per one-unit increase in L.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example (target odds ratio: 2.34):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Create test data for demonstration */

data test;
call streaminit(3141592);
do id=1 to 1000000;
  X=rand('uniform',0.5,5);
  L=log(X)/log(2);
  p=logistic(-3.45+log(2.34)*L);
  event=rand('bern',p);
  output;
end;
run;

/* Estimate odds ratio for doubling X */

proc logistic data=test desc;
model event=L;
run;

/* Check two empirical odds ratios */

proc freq data=test;
where round(x,.1) in (1,2);
format x 1.;
tables x*event / or nopercent nocol norow;
run;

proc freq data=test;
where round(x,.1) in (2,4);
format x 1.;
tables x*event / or nopercent nocol norow;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;PROC LOGISTIC output (excerpt):&lt;/P&gt;
&lt;PRE&gt;           Odds Ratio Estimates

             Point          95% Wald
Effect    Estimate      Confidence Limits

L            2.335       2.310       2.360&lt;/PRE&gt;
&lt;P&gt;PROC FREQ output (excerpts):&lt;/P&gt;
&lt;PRE&gt;X         event

Frequency|       0|       1|  Total
---------+--------+--------+
       1 |  21706 |    698 |  22404
---------+--------+--------+
       2 |  20721 |   1557 |  22278
---------+--------+--------+
Total       42427     2255    44682

Statistic                        Value       95% Confidence Limits
------------------------------------------------------------------
Odds Ratio                      2.3367        2.1328        2.5600

Sample Size = 44682


X         event

Frequency|       0|       1|  Total
---------+--------+--------+
       2 |  20721 |   1557 |  22278
---------+--------+--------+
       4 |  18811 |   3285 |  22096
---------+--------+--------+
Total       39532     4842    44374

Statistic                        Value       95% Confidence Limits
------------------------------------------------------------------
Odds Ratio                      2.3241        2.1812        2.4763

Sample Size = 44374&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 11:06:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/OR-in-proc-logistic/m-p/540403#M7223</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-03-05T11:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: OR in proc logistic</title>
      <link>https://communities.sas.com/t5/New-SAS-User/OR-in-proc-logistic/m-p/540416#M7224</link>
      <description>&lt;P&gt;Thank you very much for your answer.&lt;/P&gt;&lt;P&gt;What about using this in a multivariable model? Should I transform all continuous variables using log(X)/log(2)?&lt;/P&gt;&lt;P&gt;In a univariate model&amp;nbsp; = X compared to model = Log(X)/Log(2), the p-value also changes.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 12:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/OR-in-proc-logistic/m-p/540416#M7224</guid>
      <dc:creator>HansP</dc:creator>
      <dc:date>2019-03-05T12:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: OR in proc logistic</title>
      <link>https://communities.sas.com/t5/New-SAS-User/OR-in-proc-logistic/m-p/540479#M7228</link>
      <description>&lt;P&gt;If the model was linear in the logit for a logarithmically transformed&amp;nbsp;predictor, then I would apply this transformation. However, if the linearity assumption was rather satisfied with the untransformed predictor, then I wouldn't transform it. In this case the "&lt;SPAN&gt;OR for the risk of doubling the value of" this predictor would "naturally" depend on the predictor value (1 vs. 2 unlike 2 vs. 4, etc.).&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265197"&gt;@HansP&lt;/a&gt;&amp;nbsp;wrote:
&lt;P&gt;In a univariate model&amp;nbsp; = X compared to model = Log(X)/Log(2), the p-value also changes.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Yes, I would expect this behavior because it's a nonlinear transformation. The question is: Is there a good reason for the logarithmic transformation, e.g., in terms of model assumptions (see above), goodness-of-fit, theoretical considerations?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 15:54:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/OR-in-proc-logistic/m-p/540479#M7228</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-03-05T15:54:20Z</dc:date>
    </item>
  </channel>
</rss>

