<?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: Score a genmod model in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Score-a-genmod-model/m-p/136967#M36906</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use ods with obstats option something liket this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods output obstats=obstats;&lt;/P&gt;&lt;P&gt;PROC GENMOD DATA=have;&lt;/P&gt;&lt;P&gt;MODEL Y=X / D=B OBSTATS;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=obstats;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Sep 2014 15:26:49 GMT</pubDate>
    <dc:creator>stat_sas</dc:creator>
    <dc:date>2014-09-09T15:26:49Z</dc:date>
    <item>
      <title>Score a genmod model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Score-a-genmod-model/m-p/136966#M36905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I initially built a logistic model for my dataset, and used the score option within proc logistic to get a probability of the event for each observation. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I would like to use proc genmod (with binomial distribution, logit link) so I can use the bayes option with coeffprior= in order to get coefficients based on a categorical variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue - I don't know how to get the probability of the event for each observation within proc genmod. How can I do something like the score option within proc logistic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 15:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Score-a-genmod-model/m-p/136966#M36905</guid>
      <dc:creator>BN_RN17</dc:creator>
      <dc:date>2014-09-09T15:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Score a genmod model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Score-a-genmod-model/m-p/136967#M36906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use ods with obstats option something liket this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods output obstats=obstats;&lt;/P&gt;&lt;P&gt;PROC GENMOD DATA=have;&lt;/P&gt;&lt;P&gt;MODEL Y=X / D=B OBSTATS;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=obstats;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 15:26:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Score-a-genmod-model/m-p/136967#M36906</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-09-09T15:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Score a genmod model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Score-a-genmod-model/m-p/136968#M36907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response. Gave that a try, but the proc print tells me there's no dataset called obstats. In the line: ods output obstats=obstats, the obstats does not become blue as a recognized option. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 17:25:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Score-a-genmod-model/m-p/136968#M36907</guid>
      <dc:creator>BN_RN17</dc:creator>
      <dc:date>2014-09-09T17:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Score a genmod model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Score-a-genmod-model/m-p/136969#M36908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you putting obstats in model options?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODEL Y=X / D=B &lt;STRONG&gt;OBSTATS&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 17:34:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Score-a-genmod-model/m-p/136969#M36908</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-09-09T17:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Score a genmod model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Score-a-genmod-model/m-p/136970#M36909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I put that in. Actually, I just realized I got a note too&lt;/P&gt;&lt;P&gt;NOTE: The OBSTATS, RESIDUALS, XVARS, PREDICTED, and DIAGNOSTICS options are ignored for a Bayesian analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 17:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Score-a-genmod-model/m-p/136970#M36909</guid>
      <dc:creator>BN_RN17</dc:creator>
      <dc:date>2014-09-09T17:58:20Z</dc:date>
    </item>
  </channel>
</rss>

