<?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: calculate 95%confidence intervals for bmi by sex, age group and bmi group in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/calculate-95-confidence-intervals-for-bmi-by-sex-age-group-and/m-p/902778#M40314</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/411685"&gt;@maragdalis&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi I want to produce a table that has the frequency of males and females by age group and bmi group and the 95%conf interval for bmi within each group.&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think it would be helpful to be technical for a second. You cannot produce "confidence intervals for BMI", there is no such thing. There are confidence intervals for a statistic computed from BMI such as confidence intervals of the mean of BMI. From now on, for your own benefit as well as for the benefit of your audience, you should probably refer to "confidence intervals for the mean of BMI" and not "confidence intervals for BMI".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is that what you want, confidence intervals for the mean of BMI? Since you do not show the mean in your table, I find this very confusing. Wouldn't including the mean in your table be a good thing to do?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Nov 2023 15:18:45 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-11-13T15:18:45Z</dc:date>
    <item>
      <title>calculate 95%confidence intervals for bmi by sex, age group and bmi group</title>
      <link>https://communities.sas.com/t5/New-SAS-User/calculate-95-confidence-intervals-for-bmi-by-sex-age-group-and/m-p/902737#M40312</link>
      <description>&lt;P&gt;Hi I want to produce a table that has the frequency of males and females by age group and bmi group and the 95%conf interval for bmi within each group.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;ie&amp;nbsp;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Sex&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| underweight | normal | overweight | obese&amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------&lt;/P&gt;&lt;P&gt;|M Freq |&amp;nbsp; &amp;nbsp; 5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp;10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; 8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; 5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------&lt;/P&gt;&lt;P&gt;| 95%CI|&amp;nbsp; &amp;nbsp;15.1-18.0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 19.1-20.5|&amp;nbsp; &amp;nbsp;26.2-29.1&amp;nbsp; &amp;nbsp;| 36.9-41.1 |&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks in advanced&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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>Mon, 13 Nov 2023 05:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/calculate-95-confidence-intervals-for-bmi-by-sex-age-group-and/m-p/902737#M40312</guid>
      <dc:creator>maragdalis</dc:creator>
      <dc:date>2023-11-13T05:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: calculate 95%confidence intervals for bmi by sex, age group and bmi group</title>
      <link>https://communities.sas.com/t5/New-SAS-User/calculate-95-confidence-intervals-for-bmi-by-sex-age-group-and/m-p/902744#M40313</link>
      <description>&lt;P&gt;Use a class statement to divide data into different group:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=want n mean std clm;
  class sex age bmi;
  var bmi;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Nov 2023 06:23:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/calculate-95-confidence-intervals-for-bmi-by-sex-age-group-and/m-p/902744#M40313</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2023-11-13T06:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: calculate 95%confidence intervals for bmi by sex, age group and bmi group</title>
      <link>https://communities.sas.com/t5/New-SAS-User/calculate-95-confidence-intervals-for-bmi-by-sex-age-group-and/m-p/902778#M40314</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/411685"&gt;@maragdalis&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi I want to produce a table that has the frequency of males and females by age group and bmi group and the 95%conf interval for bmi within each group.&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think it would be helpful to be technical for a second. You cannot produce "confidence intervals for BMI", there is no such thing. There are confidence intervals for a statistic computed from BMI such as confidence intervals of the mean of BMI. From now on, for your own benefit as well as for the benefit of your audience, you should probably refer to "confidence intervals for the mean of BMI" and not "confidence intervals for BMI".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is that what you want, confidence intervals for the mean of BMI? Since you do not show the mean in your table, I find this very confusing. Wouldn't including the mean in your table be a good thing to do?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 15:18:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/calculate-95-confidence-intervals-for-bmi-by-sex-age-group-and/m-p/902778#M40314</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-11-13T15:18:45Z</dc:date>
    </item>
  </channel>
</rss>

