<?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: Determining whether there is a statistically significant difference in infection rates between s in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555421#M27595</link>
    <description>&lt;P&gt;I have 28 hospitals. The dataset is complete (i.e. all hospitals have an infection rate). Are PDFs a security risk? If not I've attached a screen shot of the complete dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I agree re: the 0s...but couldn't find a better explanation)&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2019 17:19:18 GMT</pubDate>
    <dc:creator>KPCklebspn</dc:creator>
    <dc:date>2019-05-01T17:19:18Z</dc:date>
    <item>
      <title>Determining whether there is a statistically significant difference in infection rates between sites</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555383#M27585</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset with a bunch of hospitals and the infection rate associated with each hospital. I want to know if there's a statistically significant difference in infection rate between hospital.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figured this would be a poisson regression since we are looking at rates, but I get the warning message below. Any idea where to go from here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code I used:&lt;/P&gt;&lt;P&gt;proc genmod data=dataset;&lt;BR /&gt;class hospital;&lt;BR /&gt;model NumberInfectionCases = hospital / dist=poisson link=log offset=lnPatientDays type3;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasWarning"&gt;&lt;P&gt;WARNING: The negative of the Hessian is not positive definite. The convergence is questionable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;WARNING: The procedure is continuing but the validity of the model fit is questionable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;WARNING: The specified model did not converge.&lt;/P&gt;&lt;P&gt;&amp;nbsp;WARNING: Negative of Hessian not positive definite.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 May 2019 15:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555383#M27585</guid>
      <dc:creator>KPCklebspn</dc:creator>
      <dc:date>2019-05-01T15:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Determining whether there is a statistically significant difference in infection rates between s</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555413#M27588</link>
      <description>&lt;P&gt;Here's an explanation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/57/127.html" target="_blank"&gt;http://support.sas.com/kb/57/127.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am wondering if in your data, you have many many many hospitals, some of them with very little data.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 16:57:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555413#M27588</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-05-01T16:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Determining whether there is a statistically significant difference in infection rates between s</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555415#M27589</link>
      <description>&lt;P&gt;Thanks, Paige!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached dataset. Do you think it has to do with the observations that have 0s?&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 17:03:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555415#M27589</guid>
      <dc:creator>KPCklebspn</dc:creator>
      <dc:date>2019-05-01T17:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Determining whether there is a statistically significant difference in infection rates between s</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555416#M27590</link>
      <description>&lt;P&gt;Thanks, Paige!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached dataset. Do you think it has to do with the observations that have 0s?&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 17:03:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555416#M27590</guid>
      <dc:creator>KPCklebspn</dc:creator>
      <dc:date>2019-05-01T17:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Determining whether there is a statistically significant difference in infection rates between s</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555417#M27591</link>
      <description>&lt;P&gt;(I ask this because it will converge if I delete observations with 0 infections)&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 17:05:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555417#M27591</guid>
      <dc:creator>KPCklebspn</dc:creator>
      <dc:date>2019-05-01T17:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Determining whether there is a statistically significant difference in infection rates between s</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555418#M27592</link>
      <description>&lt;P&gt;I don't download XLSX files, as they are a security risk.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Zero values for Y should not be an issue in Poisson regression, as zero is a possible and likely value. However, you didn't answer the question: do you have lots and lots of hospitals, some of them with very limited data?&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 17:15:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555418#M27592</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-05-01T17:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Determining whether there is a statistically significant difference in infection rates between s</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555419#M27593</link>
      <description>&lt;P&gt;I have 28 hospitals. The dataset is complete (i.e. all hospitals have an infection rate). Are PDFs a security risk? If not I've attached a screen shot of the complete dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I agree re: the 0s...but couldn't find a better explanation)&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 17:19:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555419#M27593</guid>
      <dc:creator>KPCklebspn</dc:creator>
      <dc:date>2019-05-01T17:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Determining whether there is a statistically significant difference in infection rates between s</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555420#M27594</link>
      <description>&lt;P&gt;I have 28 hospitals. The dataset is complete (i.e. all hospitals have an infection rate). Are PDFs a security risk? If not I've attached a screen shot of the complete dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I agree re: the 0s...but couldn't find a better explanation)&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 17:19:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555420#M27594</guid>
      <dc:creator>KPCklebspn</dc:creator>
      <dc:date>2019-05-01T17:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Determining whether there is a statistically significant difference in infection rates between s</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555421#M27595</link>
      <description>&lt;P&gt;I have 28 hospitals. The dataset is complete (i.e. all hospitals have an infection rate). Are PDFs a security risk? If not I've attached a screen shot of the complete dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I agree re: the 0s...but couldn't find a better explanation)&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 17:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555421#M27595</guid>
      <dc:creator>KPCklebspn</dc:creator>
      <dc:date>2019-05-01T17:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Determining whether there is a statistically significant difference in infection rates between s</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555429#M27596</link>
      <description>&lt;P&gt;The question is... are there small amounts of data for some hospitals, for example 1000 patients at hospital A and 2 patients for hospital B?&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 17:40:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555429#M27596</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-05-01T17:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Determining whether there is a statistically significant difference in infection rates between s</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555431#M27597</link>
      <description>Ah, sorry I misunderstood. There is variability in # of patients in general being admitted across hospitals. The hospital with the highest # of patient days has over 2 million patient-days, and the hospital with the smallest has ~160,000 patient-days&lt;BR /&gt;</description>
      <pubDate>Wed, 01 May 2019 17:43:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555431#M27597</guid>
      <dc:creator>KPCklebspn</dc:creator>
      <dc:date>2019-05-01T17:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Determining whether there is a statistically significant difference in infection rates between s</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555455#M27598</link>
      <description>&lt;P&gt;Ok, so I don't think the number of patients per hospital is the problem, 160,000 is not a small number. However, I can't be more specific about what is the issue here, the only thing I can say is to read the link I provided carefully, it discusses this issue.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 19:22:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555455#M27598</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-05-01T19:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Determining whether there is a statistically significant difference in infection rates between s</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555465#M27599</link>
      <description>&lt;P&gt;Many users here don't want to download Excel files because of virus potential, others have such things blocked by security software. Also if you give us Excel we have to create a SAS data set and due to the non-existent constraints on Excel data cells the result we end up with may not have variables of the same type (numeric or character) and even values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 19:56:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555465#M27599</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-01T19:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Determining whether there is a statistically significant difference in infection rates between s</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555469#M27600</link>
      <description>&lt;P&gt;When I try to recreate your data using the example and run code I get:&lt;/P&gt;
&lt;PRE&gt;NOTE: Fitting saturated model. Scale will not be estimated.
WARNING: The relative Hessian convergence criterion of 0.0024232925 is greater than the limit of
         0.0001. The convergence is questionable.
WARNING: The procedure is continuing but the validity of the model fit is questionable.
NOTE: The scale parameter was held fixed.
&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;ERROR: The mean parameter is either invalid or at a limit of its range for some observations.&lt;/FONT&gt;&lt;/STRONG&gt;
WARNING: The specified model constrained by contrast Hospital did not converge.
NOTE: PROCEDURE GENMOD used (Total process time):
&lt;/PRE&gt;
&lt;P&gt;If you don't get that error then we have one of the reasons we request you provide data in the form of a data step as I had to create one from an XLSX file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF I remove the OFFSET then I get the exact same warnings. Which is why we request code and notes both from the LOG. It appears that you warnings did not come from the shown code.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 20:05:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555469#M27600</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-01T20:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Determining whether there is a statistically significant difference in infection rates between s</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555631#M27605</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/141326"&gt;@KPCklebspn&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_genmod_gettingstarted01.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank" rel="noopener"&gt;Poisson Regression example&lt;/A&gt; in the PROC GENMOD documentation I conclude: The equations for the parameters &lt;FONT face="symbol"&gt;b&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;hospital&lt;/FONT&gt; are of the form&lt;/P&gt;
&lt;PRE&gt;log(NumberInfectionCases) = log(PtDays) + &lt;FONT face="symbol"&gt;b&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;0&lt;/FONT&gt; + &lt;FONT face="symbol"&gt;b&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;hospital&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;Moreover, SAS spends one degree of freedom to set the parameter for the alphabetically last hospital, i.e. &lt;FONT face="symbol"&gt;b&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Z&lt;/FONT&gt;, to zero, which allows the computation of&amp;nbsp;&lt;FONT face="symbol"&gt;b&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;0&lt;/FONT&gt;&amp;nbsp;(the intercept) from the above equation for hospital Z as&lt;/P&gt;
&lt;PRE&gt;&lt;FONT face="symbol"&gt;b&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;0&lt;/FONT&gt; = log(13) - log(1367100) = -11.5632529&lt;/PRE&gt;
&lt;P&gt;Now, each of the other unknown parameters can be easily calculated from its respective equation (see above), even using a pocket calculator (no Hessian matrices etc. involved), unless &lt;FONT face="courier new,courier"&gt;NumberInfectionCases=0&lt;/FONT&gt; so that the left-hand side of the equation is not defined. However, these three cases (hospitals A, B and C) don't affect the results of the remaining hospitals, whose residuals are zero anyway. I have little hope, though, that sensible parameters &lt;FONT face="symbol"&gt;b&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;A&lt;/FONT&gt;, &lt;FONT face="symbol"&gt;b&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;B&lt;/FONT&gt; and &lt;FONT face="symbol"&gt;b&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;C&lt;/FONT&gt; can be computed as long as their equations start with "&lt;FONT face="courier new,courier"&gt;log(0)=&lt;/FONT&gt;".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you should modify your model to avoid this situation. (Sorry, I can't be more specific at the moment. My last Poisson regression is more than ten years ago.)&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 15:02:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555631#M27605</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-05-02T15:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Determining whether there is a statistically significant difference in infection rates between s</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555902#M27613</link>
      <description>&lt;P&gt;The problem is likely due to the condition described and illustrated in &lt;A href="http://support.sas.com/kb/57127" target="_self"&gt;this note&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 12:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/555902#M27613</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-05-03T12:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Determining whether there is a statistically significant difference in infection rates between s</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/586856#M28726</link>
      <description>&lt;P&gt;There are multiple predictors in this note though, and in the note the issue is collinearity? I just have one predictor...&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 19:47:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Determining-whether-there-is-a-statistically-significant/m-p/586856#M28726</guid>
      <dc:creator>KPCklebspn</dc:creator>
      <dc:date>2019-09-06T19:47:42Z</dc:date>
    </item>
  </channel>
</rss>

