<?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 What is the proper way to estimate a logistic model in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/What-is-the-proper-way-to-estimate-a-logistic-model/m-p/199341#M49832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming I have a set of data where the response variable y only takes the value of 0 and 1, and x are the covariate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the logic of the logistic function, define:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p=Probability(y=1) and we know the underlying function is that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p=&amp;nbsp; 1/(1+exp(-beta*x))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I write the SAS code for it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the following correct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc genmod data=XXXX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model y= x/dist=binomial&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if SAS actually maximize the likelihood function according to the aforementioned specification or SAS simply takes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g(y)=logit(y)=x*beta and run a OLS type regression to get beta.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is case, I do not think , and what should be the correct setup?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2015 19:09:37 GMT</pubDate>
    <dc:creator>bigbigben</dc:creator>
    <dc:date>2015-06-03T19:09:37Z</dc:date>
    <item>
      <title>What is the proper way to estimate a logistic model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/What-is-the-proper-way-to-estimate-a-logistic-model/m-p/199341#M49832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming I have a set of data where the response variable y only takes the value of 0 and 1, and x are the covariate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the logic of the logistic function, define:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p=Probability(y=1) and we know the underlying function is that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p=&amp;nbsp; 1/(1+exp(-beta*x))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I write the SAS code for it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the following correct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc genmod data=XXXX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model y= x/dist=binomial&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if SAS actually maximize the likelihood function according to the aforementioned specification or SAS simply takes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g(y)=logit(y)=x*beta and run a OLS type regression to get beta.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is case, I do not think , and what should be the correct setup?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 19:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/What-is-the-proper-way-to-estimate-a-logistic-model/m-p/199341#M49832</guid>
      <dc:creator>bigbigben</dc:creator>
      <dc:date>2015-06-03T19:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: What is the proper way to estimate a logistic model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/What-is-the-proper-way-to-estimate-a-logistic-model/m-p/199342#M49833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both GENMOD and LOGISTIC (and other PROCs) use MLE for a binomial distribution, definitely not OLS. Check out LOGISTIC for great graphics. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 15:38:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/What-is-the-proper-way-to-estimate-a-logistic-model/m-p/199342#M49833</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2015-06-04T15:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: What is the proper way to estimate a logistic model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/What-is-the-proper-way-to-estimate-a-logistic-model/m-p/199343#M49834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use proc logistic &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 15:41:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/What-is-the-proper-way-to-estimate-a-logistic-model/m-p/199343#M49834</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-06-04T15:41:27Z</dc:date>
    </item>
  </channel>
</rss>

