<?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 prevalence rate and 95%CI for BMI across age groups and gender in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/prevalence-rate-and-95-CI-for-BMI-across-age-groups-and-gender/m-p/902907#M356832</link>
    <description>&lt;P&gt;Hi Apologies this is my first post to this group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wish to calculate the prevalence rate and 95% confidence intervals for people by BMI category and age group by sex to produce the table below. Could you advise? Thanks for your help!&lt;/P&gt;&lt;P&gt;*********************************************************************************************************************************************&lt;/P&gt;&lt;P&gt;| Sex |&amp;nbsp; &amp;nbsp;age group&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; underweight | healthy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | overweight&amp;nbsp; &amp;nbsp; &amp;nbsp; | obese&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; Total&amp;nbsp;&lt;/P&gt;&lt;P&gt;*********************************************************************************************************************************************&lt;/P&gt;&lt;P&gt;| M&amp;nbsp; &amp;nbsp; | 20-&amp;lt;30years&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Prev (95%CI) |&amp;nbsp;Prev (95%CI)&amp;nbsp; |Prev (95%CI)&amp;nbsp; |Prev (95%CI)&amp;nbsp; |Prev (95%CI)&amp;nbsp; |&amp;nbsp; &amp;nbsp;etc&lt;/P&gt;&lt;P&gt;*********************************************************************************************************************************************&lt;/P&gt;&lt;P&gt;PROC FORMAT;&lt;BR /&gt;VALUE agefmt&lt;BR /&gt;20-&amp;lt;30 = '20-&amp;lt;30 years'&lt;BR /&gt;30-&amp;lt;40 = '30-&amp;lt;40 years'&lt;BR /&gt;40-&amp;lt;50 = '40-&amp;lt;50 years'&lt;BR /&gt;;&lt;BR /&gt;value bmifmt&lt;BR /&gt;9-&amp;lt;18.5 = 'Underweight (9-&amp;lt;18.5)'&lt;BR /&gt;18.5-&amp;lt;25 = 'Healthy (18.5-&amp;lt;25)'&lt;BR /&gt;25-&amp;lt;30 = 'Overweight (25-&amp;lt;30)'&lt;BR /&gt;30-51 = 'Obese (30+)';&lt;BR /&gt;VALUE sexfmt&lt;BR /&gt;0 = 'Female'&lt;BR /&gt;1 = 'Male'&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;DATA have;&lt;BR /&gt;INPUT age bmi sex @@;&lt;BR /&gt;DATALINES;&lt;BR /&gt;20 18.5 1 25 23.5 1 26 24.5 1 20 15.5 1 20 16.2 1 21 18.0 1 20 30.2 1 21 26.5 1 22 29.0 1 22 29.5 1&lt;BR /&gt;20 22.5 0 21 23.5 0 20 24.5 0 23 25.5 0 23 25.2 0 25 19.0 0 26 38.2 0 23 36.5 0 24 29.0 0 25 16.5 0&lt;BR /&gt;30 22.5 0 31 23.5 0 30 24.5 0 33 25.5 0 33 25.2 0 35 19.0 0 36 38.2 0 33 36.5 0 34 29.0 0 35 16.5 0&lt;BR /&gt;30 18.5 1 35 20.5 1 36 24.5 1 30 15.5 1 30 16.2 1 31 18.0 1 30 30.2 1 31 26.1 1 32 29.1 1 32 29.5 1&lt;BR /&gt;40 22.5 0 40 23.5 0 40 24.5 0 42 25.5 0 42 20.2 0 45 39.0 0 46 38.2 0 43 36.5 0 44 29.0 0 45 30.5 0&lt;BR /&gt;40 12.5 1 41 28.5 1 40 24.5 1 43 25.5 1 43 25.2 1 45 19.0 1 46 38.2 1 43 36.5 1 44 29.0 1 45 16.5 1&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;DATA want;&lt;BR /&gt;SET have;&lt;BR /&gt;FORMAT age agefmt.;&lt;BR /&gt;FORMAT bmi bmifmt. ;&lt;BR /&gt;FORMAT sex sexfmt.;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2023 02:43:14 GMT</pubDate>
    <dc:creator>maragdalis</dc:creator>
    <dc:date>2023-11-14T02:43:14Z</dc:date>
    <item>
      <title>prevalence rate and 95%CI for BMI across age groups and gender</title>
      <link>https://communities.sas.com/t5/SAS-Programming/prevalence-rate-and-95-CI-for-BMI-across-age-groups-and-gender/m-p/902907#M356832</link>
      <description>&lt;P&gt;Hi Apologies this is my first post to this group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wish to calculate the prevalence rate and 95% confidence intervals for people by BMI category and age group by sex to produce the table below. Could you advise? Thanks for your help!&lt;/P&gt;&lt;P&gt;*********************************************************************************************************************************************&lt;/P&gt;&lt;P&gt;| Sex |&amp;nbsp; &amp;nbsp;age group&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; underweight | healthy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | overweight&amp;nbsp; &amp;nbsp; &amp;nbsp; | obese&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; Total&amp;nbsp;&lt;/P&gt;&lt;P&gt;*********************************************************************************************************************************************&lt;/P&gt;&lt;P&gt;| M&amp;nbsp; &amp;nbsp; | 20-&amp;lt;30years&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Prev (95%CI) |&amp;nbsp;Prev (95%CI)&amp;nbsp; |Prev (95%CI)&amp;nbsp; |Prev (95%CI)&amp;nbsp; |Prev (95%CI)&amp;nbsp; |&amp;nbsp; &amp;nbsp;etc&lt;/P&gt;&lt;P&gt;*********************************************************************************************************************************************&lt;/P&gt;&lt;P&gt;PROC FORMAT;&lt;BR /&gt;VALUE agefmt&lt;BR /&gt;20-&amp;lt;30 = '20-&amp;lt;30 years'&lt;BR /&gt;30-&amp;lt;40 = '30-&amp;lt;40 years'&lt;BR /&gt;40-&amp;lt;50 = '40-&amp;lt;50 years'&lt;BR /&gt;;&lt;BR /&gt;value bmifmt&lt;BR /&gt;9-&amp;lt;18.5 = 'Underweight (9-&amp;lt;18.5)'&lt;BR /&gt;18.5-&amp;lt;25 = 'Healthy (18.5-&amp;lt;25)'&lt;BR /&gt;25-&amp;lt;30 = 'Overweight (25-&amp;lt;30)'&lt;BR /&gt;30-51 = 'Obese (30+)';&lt;BR /&gt;VALUE sexfmt&lt;BR /&gt;0 = 'Female'&lt;BR /&gt;1 = 'Male'&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;DATA have;&lt;BR /&gt;INPUT age bmi sex @@;&lt;BR /&gt;DATALINES;&lt;BR /&gt;20 18.5 1 25 23.5 1 26 24.5 1 20 15.5 1 20 16.2 1 21 18.0 1 20 30.2 1 21 26.5 1 22 29.0 1 22 29.5 1&lt;BR /&gt;20 22.5 0 21 23.5 0 20 24.5 0 23 25.5 0 23 25.2 0 25 19.0 0 26 38.2 0 23 36.5 0 24 29.0 0 25 16.5 0&lt;BR /&gt;30 22.5 0 31 23.5 0 30 24.5 0 33 25.5 0 33 25.2 0 35 19.0 0 36 38.2 0 33 36.5 0 34 29.0 0 35 16.5 0&lt;BR /&gt;30 18.5 1 35 20.5 1 36 24.5 1 30 15.5 1 30 16.2 1 31 18.0 1 30 30.2 1 31 26.1 1 32 29.1 1 32 29.5 1&lt;BR /&gt;40 22.5 0 40 23.5 0 40 24.5 0 42 25.5 0 42 20.2 0 45 39.0 0 46 38.2 0 43 36.5 0 44 29.0 0 45 30.5 0&lt;BR /&gt;40 12.5 1 41 28.5 1 40 24.5 1 43 25.5 1 43 25.2 1 45 19.0 1 46 38.2 1 43 36.5 1 44 29.0 1 45 16.5 1&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;DATA want;&lt;BR /&gt;SET have;&lt;BR /&gt;FORMAT age agefmt.;&lt;BR /&gt;FORMAT bmi bmifmt. ;&lt;BR /&gt;FORMAT sex sexfmt.;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 02:43:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/prevalence-rate-and-95-CI-for-BMI-across-age-groups-and-gender/m-p/902907#M356832</guid>
      <dc:creator>maragdalis</dc:creator>
      <dc:date>2023-11-14T02:43:14Z</dc:date>
    </item>
  </channel>
</rss>

