<?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: adjusted Confidence intervals for age, gender, region standardized prevalence rates in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/adjusted-Confidence-intervals-for-age-gender-region-standardized/m-p/413457#M21677</link>
    <description>&lt;P&gt;If those weights are survey weights, then what you might need is the SURVEYFREQ or SURVEYLOGISTIC procedure.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2017 20:01:34 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2017-11-14T20:01:34Z</dc:date>
    <item>
      <title>adjusted Confidence intervals for age, gender, region standardized prevalence rates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/adjusted-Confidence-intervals-for-age-gender-region-standardized/m-p/413198#M21647</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to obtain the adjusted confidence intervals for prevalence rates of a disease standardized by Region, Gender and Age.&lt;/P&gt;&lt;P&gt;I was able to calculate the crude prevalence rates and obtained the weights from the 2016 National Census.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering if anybody can help me with the confidence interval calculation for the adjusted prevalence rates.&lt;/P&gt;&lt;P&gt;This is how the sample data looks like with thousands of observations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS code:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sampledat.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16616i4B305BADD5C72349/image-size/large?v=v2&amp;amp;px=999" role="button" title="sampledat.PNG" alt="sampledat.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sas code;&lt;/P&gt;&lt;P&gt;PROC MEANS DATA=T1 FW=8 MAXDEC=2 CLM MEAN SUM noprint;&lt;BR /&gt;CLass REGION GENDER AGECAT;&lt;BR /&gt;VAR EVENT;&lt;BR /&gt;OUTPUT OUT=Dat_SUM SUM= EVS;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;DATA CALC1 ;&lt;BR /&gt;SET dat_SUM (rename=(_FREQ_=TOTN));&lt;BR /&gt;length CIS $19.;&lt;BR /&gt;If gender=. then Gender=3; If Agect=. then Agect=9;&lt;BR /&gt;/************ Prev rate and conf intervals for crude prevalence rates**********/&lt;BR /&gt;If EVS&amp;gt;0 then do; p=EVS/TOTN;&lt;BR /&gt;PREV=ROUND(100000*EVS/TOTN,.01);&lt;BR /&gt;F = log(p)-log(1-p);&lt;BR /&gt;SE = 1/SQRT(p*(1-p)*TOTN);&lt;BR /&gt;Lf = F - TINV(1-(0.05/2), TOTN-1)*SE;&lt;BR /&gt;Uf = F + TINV(1-(0.05/2), TOTN-1)*SE;&lt;BR /&gt;Lp = ROUND((exp(Lf)/(1+exp(Lf)))*100000,.01);&lt;BR /&gt;Up = ROUND((exp(Uf)/(1+exp(Uf)))*100000,.01);&lt;BR /&gt;CIS='['||STRIP(PUT(Lp,6.2))||', '||STRIP(PUT(Up,6.2))||']';&lt;BR /&gt;end;&lt;BR /&gt;/**** adjusted rates using the national weights******/&lt;BR /&gt;PREV_Ad=ROUND(PREV*weight,.01);&lt;BR /&gt;/**** how to calculate the CI's for adjusted rate ???????******/&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 04:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/adjusted-Confidence-intervals-for-age-gender-region-standardized/m-p/413198#M21647</guid>
      <dc:creator>Philmsk</dc:creator>
      <dc:date>2017-11-14T04:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: adjusted Confidence intervals for age, gender, region standardized prevalence rates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/adjusted-Confidence-intervals-for-age-gender-region-standardized/m-p/413200#M21648</link>
      <description>&lt;P&gt;There’s a PROC for that. PROC STDRATE.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/166627"&gt;@Philmsk&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to obtain the adjusted confidence intervals for prevalence rates of a disease standardized by Region, Gender and Age.&lt;/P&gt;
&lt;P&gt;I was able to calculate the crude prevalence rates and obtained the weights from the 2016 National Census.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am wondering if anybody can help me with the confidence interval calculation for the adjusted prevalence rates.&lt;/P&gt;
&lt;P&gt;This is how the sample data looks like with thousands of observations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS code:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sampledat.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16616i4B305BADD5C72349/image-size/large?v=v2&amp;amp;px=999" role="button" title="sampledat.PNG" alt="sampledat.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sas code;&lt;/P&gt;
&lt;P&gt;PROC MEANS DATA=T1 FW=8 MAXDEC=2 CLM MEAN SUM noprint;&lt;BR /&gt;CLass REGION GENDER AGECAT;&lt;BR /&gt;VAR EVENT;&lt;BR /&gt;OUTPUT OUT=Dat_SUM SUM= EVS;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;DATA CALC1 ;&lt;BR /&gt;SET dat_SUM (rename=(_FREQ_=TOTN));&lt;BR /&gt;length CIS $19.;&lt;BR /&gt;If gender=. then Gender=3; If Agect=. then Agect=9;&lt;BR /&gt;/************ Prev rate and conf intervals for crude prevalence rates**********/&lt;BR /&gt;If EVS&amp;gt;0 then do; p=EVS/TOTN;&lt;BR /&gt;PREV=ROUND(100000*EVS/TOTN,.01);&lt;BR /&gt;F = log(p)-log(1-p);&lt;BR /&gt;SE = 1/SQRT(p*(1-p)*TOTN);&lt;BR /&gt;Lf = F - TINV(1-(0.05/2), TOTN-1)*SE;&lt;BR /&gt;Uf = F + TINV(1-(0.05/2), TOTN-1)*SE;&lt;BR /&gt;Lp = ROUND((exp(Lf)/(1+exp(Lf)))*100000,.01);&lt;BR /&gt;Up = ROUND((exp(Uf)/(1+exp(Uf)))*100000,.01);&lt;BR /&gt;CIS='['||STRIP(PUT(Lp,6.2))||', '||STRIP(PUT(Up,6.2))||']';&lt;BR /&gt;end;&lt;BR /&gt;/**** adjusted rates using the national weights******/&lt;BR /&gt;PREV_Ad=ROUND(PREV*weight,.01);&lt;BR /&gt;/**** how to calculate the CI's for adjusted rate ???????******/&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in Advance.&lt;/P&gt;
&lt;P&gt;Phil&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 05:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/adjusted-Confidence-intervals-for-age-gender-region-standardized/m-p/413200#M21648</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-14T05:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: adjusted Confidence intervals for age, gender, region standardized prevalence rates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/adjusted-Confidence-intervals-for-age-gender-region-standardized/m-p/413457#M21677</link>
      <description>&lt;P&gt;If those weights are survey weights, then what you might need is the SURVEYFREQ or SURVEYLOGISTIC procedure.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 20:01:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/adjusted-Confidence-intervals-for-age-gender-region-standardized/m-p/413457#M21677</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2017-11-14T20:01:34Z</dc:date>
    </item>
  </channel>
</rss>

