<?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 weighted average in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/weighted-average/m-p/721762#M34973</link>
    <description>&lt;P&gt;I have longitudinal data of number of hospital visits for individuals from when they were ages 15 through 30.&amp;nbsp; I have counted the total number of visits at different age ranges (15-20, 21-25, 26-30, and 15-30).&amp;nbsp; Each individuals have different&amp;nbsp;weights assigned at each age.&amp;nbsp; I would like to calculate the weighted average of visits at different age ranges.&amp;nbsp;&amp;nbsp; Does it make sense to take the weights at age 30 (weight30) to take the weighted averages?&amp;nbsp; Or should I use weight20 to calculate the weighted average number visits 15-20 (visits1520), weight25 for visits2125, weight30 for visits2630, and weight30 for visits1530.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2021 06:14:05 GMT</pubDate>
    <dc:creator>kk13</dc:creator>
    <dc:date>2021-02-25T06:14:05Z</dc:date>
    <item>
      <title>weighted average</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/weighted-average/m-p/721762#M34973</link>
      <description>&lt;P&gt;I have longitudinal data of number of hospital visits for individuals from when they were ages 15 through 30.&amp;nbsp; I have counted the total number of visits at different age ranges (15-20, 21-25, 26-30, and 15-30).&amp;nbsp; Each individuals have different&amp;nbsp;weights assigned at each age.&amp;nbsp; I would like to calculate the weighted average of visits at different age ranges.&amp;nbsp;&amp;nbsp; Does it make sense to take the weights at age 30 (weight30) to take the weighted averages?&amp;nbsp; Or should I use weight20 to calculate the weighted average number visits 15-20 (visits1520), weight25 for visits2125, weight30 for visits2630, and weight30 for visits1530.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 06:14:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/weighted-average/m-p/721762#M34973</guid>
      <dc:creator>kk13</dc:creator>
      <dc:date>2021-02-25T06:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: weighted average</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/weighted-average/m-p/721763#M34974</link>
      <description>&lt;P&gt;Please show us your data instead of describing it. Makes it much easier to provide a usable code answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 06:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/weighted-average/m-p/721763#M34974</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-02-25T06:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: weighted average</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/weighted-average/m-p/721765#M34975</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Age1520 is the total number of visits from ages 15 through 20,...etc.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; have;&lt;/P&gt;&lt;P&gt;input id age1520 age2125 age2630;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 7 8 3&lt;/P&gt;&lt;P&gt;2 4 10 5&lt;/P&gt;&lt;P&gt;3 7 13 2&lt;/P&gt;&lt;P&gt;4 5 15 6&lt;/P&gt;&lt;P&gt;5 4 11 2&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; weights;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; id weights15-weights30;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 06:20:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/weighted-average/m-p/721765#M34975</guid>
      <dc:creator>kk13</dc:creator>
      <dc:date>2021-02-25T06:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: weighted average</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/weighted-average/m-p/721831#M34977</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/150926"&gt;@kk13&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have longitudinal data of number of hospital visits for individuals from when they were ages 15 through 30.&amp;nbsp; I have counted the total number of visits at different age ranges (15-20, 21-25, 26-30, and 15-30).&amp;nbsp; Each individuals have different&amp;nbsp;weights assigned at each age.&amp;nbsp; I would like to calculate the weighted average of visits at different age ranges.&amp;nbsp;&amp;nbsp; Does it make sense to take the weights at age 30 (weight30) to take the weighted averages?&amp;nbsp; Or should I use weight20 to calculate the weighted average number visits 15-20 (visits1520), weight25 for visits2125, weight30 for visits2630, and weight30 for visits1530.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You are asking what the proper weighting scheme is for this data. This is not a question we can answer. We don't know what your weights are, how they were derived, and in general, we can't know what the proper weighting is because we are not familiar with the underlying problem. You are the one who needs to decide the proper weighting scheme, and then we can help you write the code.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 12:41:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/weighted-average/m-p/721831#M34977</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-02-25T12:41:47Z</dc:date>
    </item>
  </channel>
</rss>

