<?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: Proc STDRATE error message, missing matched stratum in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-STDRATE-error-message-missing-matched-stratum/m-p/313373#M16505</link>
    <description>&lt;P&gt;Check if your test dataset is missing a value for age 16 for a census tract. You can add it in as 0.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A quick amd dirty way is to use proc freq with the sparse option to add in the 0.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2016 08:04:04 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-11-22T08:04:04Z</dc:date>
    <item>
      <title>Proc STDRATE error message, missing matched stratum</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-STDRATE-error-message-missing-matched-stratum/m-p/313353#M16504</link>
      <description>&lt;P&gt;I am trying to get directly standardized rates using proc stdrate, by census tract&amp;nbsp;and county. When I run my code I get the error message "ERROR: The stratum in the REFDATA= data set, agegrp= 16, does not have a matched&lt;BR /&gt;stratum in the DATA= data set" . I added&amp;nbsp;the "notsorted" option becuase I thought the problem might be that census tract is not in ascending&amp;nbsp;order, but it did not fix the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=test; by county1 ctract; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc stdrate data=test&lt;BR /&gt;refdata=USstandard&lt;BR /&gt;method=direct&lt;BR /&gt;stat=rate(mult=100000)&lt;BR /&gt;;&lt;BR /&gt;population event=count total=denom;&lt;BR /&gt;reference total=standard;&lt;BR /&gt;strata agegrp;&lt;BR /&gt;by county1 ctract notsorted;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 05:12:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-STDRATE-error-message-missing-matched-stratum/m-p/313353#M16504</guid>
      <dc:creator>psh23</dc:creator>
      <dc:date>2016-11-22T05:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc STDRATE error message, missing matched stratum</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-STDRATE-error-message-missing-matched-stratum/m-p/313373#M16505</link>
      <description>&lt;P&gt;Check if your test dataset is missing a value for age 16 for a census tract. You can add it in as 0.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A quick amd dirty way is to use proc freq with the sparse option to add in the 0.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 08:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-STDRATE-error-message-missing-matched-stratum/m-p/313373#M16505</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-22T08:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc STDRATE error message, missing matched stratum</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-STDRATE-error-message-missing-matched-stratum/m-p/313510#M16507</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have run proc means n nmiss, and there are no missing values in the dataset, I think it must have something to do with the sorting of the data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 16:09:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-STDRATE-error-message-missing-matched-stratum/m-p/313510#M16507</guid>
      <dc:creator>psh23</dc:creator>
      <dc:date>2016-11-22T16:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc STDRATE error message, missing matched stratum</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-STDRATE-error-message-missing-matched-stratum/m-p/313515#M16508</link>
      <description>&lt;P&gt;It runs when I do not include census tract.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 16:16:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-STDRATE-error-message-missing-matched-stratum/m-p/313515#M16508</guid>
      <dc:creator>psh23</dc:creator>
      <dc:date>2016-11-22T16:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc STDRATE error message, missing matched stratum</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-STDRATE-error-message-missing-matched-stratum/m-p/313562#M16510</link>
      <description>&lt;P&gt;It's not missing as in ., it's missing as there's no record for age 16.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try something like the following.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does it return the same value?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc SQL;&lt;/P&gt;
&lt;P&gt;select count(distinct censusTract)&lt;/P&gt;
&lt;P&gt;from have;&lt;/P&gt;
&lt;P&gt;select count(distinct CensusTract)&lt;/P&gt;
&lt;P&gt;from have&lt;/P&gt;
&lt;P&gt;where age=16;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 18:48:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-STDRATE-error-message-missing-matched-stratum/m-p/313562#M16510</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-22T18:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc STDRATE error message, missing matched stratum</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-STDRATE-error-message-missing-matched-stratum/m-p/313582#M16512</link>
      <description>&lt;P&gt;Actually I missed that the error message identifies the exact group with the issue. Review your log and the error message again and check if that value exists in your dataset.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 20:21:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-STDRATE-error-message-missing-matched-stratum/m-p/313582#M16512</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-22T20:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc STDRATE error message, missing matched stratum</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-STDRATE-error-message-missing-matched-stratum/m-p/313608#M16514</link>
      <description>&lt;P&gt;There are certain census tract / county strata where there are no values for a certain agegroup, because it is such a small subgroup, but those stratum are not included in the data. It seems like it is getting stuck in that it wants a&amp;nbsp;value for every single age group stratum within each census tract / count. It is impossible to include these strata in the dataset because the denominator is zero and it will not run if there are zeros.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 21:57:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-STDRATE-error-message-missing-matched-stratum/m-p/313608#M16514</guid>
      <dc:creator>psh23</dc:creator>
      <dc:date>2016-11-22T21:57:49Z</dc:date>
    </item>
  </channel>
</rss>

