<?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: logistic regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression/m-p/325130#M17174</link>
    <description>&lt;P&gt;You can run PROC LOGISTIC on the data you have. &amp;nbsp;The response variable can be numeric or character,&amp;nbsp;and it can have a format or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default, the procedure will model the lower value of the (formatted) response variable, but you can use the (EVENT='value') option to override. For example, the following sets the formatted value of the response, thus overriding the default:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;                
   value YorN 1="Yes" 2="No";
run;

data a;
set sashelp.class;
if sex="M" then Y=1;
else Y=2;
format Y YorN.;
run;

proc logistic data=a;
model y(event="Yes") = height weight;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jan 2017 21:19:38 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-01-16T21:19:38Z</dc:date>
    <item>
      <title>logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression/m-p/325129#M17173</link>
      <description>&lt;P&gt;I have a binary outcome, with 1="Yes" and 2="No". Can I run logistic regression with the given formatting? Or, do I need to convert the values to 1="Yes" and 0="No", especially when I am interested in probability of "Yes"?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 21:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression/m-p/325129#M17173</guid>
      <dc:creator>Mahip</dc:creator>
      <dc:date>2017-01-16T21:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression/m-p/325130#M17174</link>
      <description>&lt;P&gt;You can run PROC LOGISTIC on the data you have. &amp;nbsp;The response variable can be numeric or character,&amp;nbsp;and it can have a format or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default, the procedure will model the lower value of the (formatted) response variable, but you can use the (EVENT='value') option to override. For example, the following sets the formatted value of the response, thus overriding the default:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;                
   value YorN 1="Yes" 2="No";
run;

data a;
set sashelp.class;
if sex="M" then Y=1;
else Y=2;
format Y YorN.;
run;

proc logistic data=a;
model y(event="Yes") = height weight;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 21:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression/m-p/325130#M17174</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-01-16T21:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression/m-p/325436#M17187</link>
      <description>&lt;P&gt;Thanks! But, if the procedure models lower value by default, then shouldn't the default model in your example be the one with event="Yes" (as it has the value of 1)? My understanding so far is that the default model will be on the greater value. Or am I missing something?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 19:35:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression/m-p/325436#M17187</guid>
      <dc:creator>Mahip</dc:creator>
      <dc:date>2017-01-17T19:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression/m-p/325444#M17188</link>
      <description>&lt;P&gt;I wrote a working program. Run it. Then change the syntax and rerun it. Experiment. That's how you will learn.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you will discover that since "No" comes before "Yes" in alphabetical order, the default for the formatted response is "No".&lt;/P&gt;
&lt;P&gt;If you remove the format, the default response will be the smaller numerical value.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 19:54:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression/m-p/325444#M17188</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-01-17T19:54:02Z</dc:date>
    </item>
  </channel>
</rss>

