<?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: chi-square test for proportions that overlap in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/chi-square-test-for-proportions-that-overlap/m-p/227513#M54191</link>
    <description>&lt;P&gt;Hi thank you so much. I have a quick question though. If I do this for all 20 counties, is this considered multiple comparison testing? For example, should I calculate the p-values and then use proc multtest to apply Bonferroni's correction?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2015 15:06:13 GMT</pubDate>
    <dc:creator>lei</dc:creator>
    <dc:date>2015-09-28T15:06:13Z</dc:date>
    <item>
      <title>chi-square test for proportions that overlap</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/chi-square-test-for-proportions-that-overlap/m-p/227489#M54188</link>
      <description>&lt;P&gt;Hi I have a project that aims to assess the percentage of screened patients within a county versus the average within the whole state. Due to overlap between the state average and county proportion, I have to test whether the county is different from the rest of the state. Therefore, I will have to calculate the proportion within the county and then calculate the proportion of screened within the state removing the county that I am comparing. For example, if state is made up of 20 counties. If I want to compare county 1 to the rest fo the state, I would have to calculate the state proportion without county 1.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am wondering if there's a way to do this in SAS easily?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 13:54:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/chi-square-test-for-proportions-that-overlap/m-p/227489#M54188</guid>
      <dc:creator>lei</dc:creator>
      <dc:date>2015-09-28T13:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: chi-square test for proportions that overlap</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/chi-square-test-for-proportions-that-overlap/m-p/227498#M54189</link>
      <description>&lt;P&gt;Possibly easiest, as it doesn't require making lots of variables, would be to provide a custome format that assigns all of the county values except the one of interest to a "rest of state" vs the one you have. Use of the Keyword _other_ makes this relatively easy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example with numeric county codes:&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value Countygroup;&lt;/P&gt;&lt;P&gt;23="County Name"&lt;/P&gt;&lt;P&gt;_other_ = 'Rest of state'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And assign that format to the county in your code.&lt;/P&gt;&lt;P&gt;If you have names or text categories then $countygroup for name and values like '23' or the county name on the left of =.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: if your county code is missing for any records they will be included in the "rest of state" group. If this isn't the desired behavior then you would need a separate format value or use a dataset option to drop those records.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 14:27:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/chi-square-test-for-proportions-that-overlap/m-p/227498#M54189</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-09-28T14:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: chi-square test for proportions that overlap</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/chi-square-test-for-proportions-that-overlap/m-p/227513#M54191</link>
      <description>&lt;P&gt;Hi thank you so much. I have a quick question though. If I do this for all 20 counties, is this considered multiple comparison testing? For example, should I calculate the p-values and then use proc multtest to apply Bonferroni's correction?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 15:06:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/chi-square-test-for-proportions-that-overlap/m-p/227513#M54191</guid>
      <dc:creator>lei</dc:creator>
      <dc:date>2015-09-28T15:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: chi-square test for proportions that overlap</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/chi-square-test-for-proportions-that-overlap/m-p/227642#M54197</link>
      <description>&lt;P&gt;I think this is a clear case where an adjustment for multiple comparisons is needed, especially if you are going to examine differences between two states (say Texas and Wyoming, for example). &amp;nbsp;The number of counties is greatly different, and so to get comparisons on an equal basis, some sort of adjustment is needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wouldn't go Bonferroni, though, as it is generally too conservative. Check out the alternatives in PROC MULTTEST for analysis of raw p values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 12:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/chi-square-test-for-proportions-that-overlap/m-p/227642#M54197</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-09-29T12:26:22Z</dc:date>
    </item>
  </channel>
</rss>

