<?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: how to create a diagnostic plot in proc genmod dist=poisson link=log for model fit analysis? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-create-a-diagnostic-plot-in-proc-genmod-dist-poisson-link/m-p/907405#M45056</link>
    <description>&lt;P&gt;See "Linearity in the logit (or link), testing" in the list of Frequently Asked-for Statistics (FASTats) in the Important Links section of the Statistical Procedures Community page. As suggested there, you can use the method shown in the "Nonparametric logistic regression" example in the GAMPL procedure documentation, or the ASSESS statement in GENMOD to check for linearity/adequacy of the specified form.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2023 21:19:40 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2023-12-11T21:19:40Z</dc:date>
    <item>
      <title>how to create a diagnostic plot in proc genmod dist=poisson link=log for model fit analysis?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-create-a-diagnostic-plot-in-proc-genmod-dist-poisson-link/m-p/907360#M45051</link>
      <description>&lt;P&gt;my model assesses the relative risk of positive_reaction (1/0) associated with therapy hours.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod data=mydata;&lt;/P&gt;&lt;P&gt;class id;&lt;/P&gt;&lt;P&gt;model positive_reaction = num_hours +other_vars /dist=poisson link=log;&lt;/P&gt;&lt;P&gt;output out=try predicted=p reschi=r resraw=resraw;&lt;/P&gt;&lt;P&gt;repeated subject=id /type=unstr;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;proc sgplot data=try;&lt;/P&gt;&lt;P&gt;scatter x=p y=r;&lt;/P&gt;&lt;P&gt;scatter x=p y=resraw;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would like to create&amp;nbsp;a diagnostic plot in the genmod procedure to see if this linearity relationship works, or i need to use cubic splines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i&amp;nbsp; did the scatter plot of predicted and raw residual (resraw), it shows two straight lines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i do the scatter plot of the predicted and pearson residual (reschi), it shows two distinct curved line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i expect to see random dots which scattered the XY plain&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i might have not done the correct residual plots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what should i suppose to do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 17:14:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-create-a-diagnostic-plot-in-proc-genmod-dist-poisson-link/m-p/907360#M45051</guid>
      <dc:creator>lj701712</dc:creator>
      <dc:date>2023-12-11T17:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a diagnostic plot in proc genmod dist=poisson link=log for model fit analysis?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-create-a-diagnostic-plot-in-proc-genmod-dist-poisson-link/m-p/907405#M45056</link>
      <description>&lt;P&gt;See "Linearity in the logit (or link), testing" in the list of Frequently Asked-for Statistics (FASTats) in the Important Links section of the Statistical Procedures Community page. As suggested there, you can use the method shown in the "Nonparametric logistic regression" example in the GAMPL procedure documentation, or the ASSESS statement in GENMOD to check for linearity/adequacy of the specified form.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 21:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-create-a-diagnostic-plot-in-proc-genmod-dist-poisson-link/m-p/907405#M45056</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-12-11T21:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a diagnostic plot in proc genmod dist=poisson link=log for model fit analysis?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-create-a-diagnostic-plot-in-proc-genmod-dist-poisson-link/m-p/907468#M45060</link>
      <description>As StatDave said using the ASSESS statement in GENMOD  to check right model.&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_genmod_examples08.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_genmod_examples08.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_genmod_examples09.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_genmod_examples09.htm&lt;/A&gt;</description>
      <pubDate>Tue, 12 Dec 2023 05:23:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-create-a-diagnostic-plot-in-proc-genmod-dist-poisson-link/m-p/907468#M45060</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-12-12T05:23:44Z</dc:date>
    </item>
  </channel>
</rss>

