<?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 Question regarding weighting  population for each individual in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Question-regarding-weighting-population-for-each-individual/m-p/782710#M249535</link>
    <description>&lt;P&gt;Hello, I have a question regarding way to weight population for each individual.&lt;/P&gt;&lt;P&gt;I have used syntax below to have fractional rank but found out that I need to weight total population of every insur_level before doing the PROC RANK syntax.&lt;/P&gt;&lt;P&gt;I have created the sample data set to let you understand what I mean easier.&lt;/P&gt;&lt;P&gt;Could anybody help me 'weighting' the population?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julie4_0-1638064146410.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66155i61BE426CF9144FE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julie4_0-1638064146410.png" alt="Julie4_0-1638064146410.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;RANK&lt;/STRONG&gt; DATA=SSTEMP OUT=TEMP;&lt;/P&gt;&lt;P&gt;VAR INSUR_LEVEL;&lt;/P&gt;&lt;P&gt;RANKS INSUR_RANK;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;MEANS&lt;/STRONG&gt; DATA=TEMP NOPRINT;&lt;/P&gt;&lt;P&gt;VAR INSUR_RANK;&lt;/P&gt;&lt;P&gt;OUTPUT OUT=INSUR_RANK_MAX MAX=INSUR_RANK_MAX;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt; TEMP2;&lt;/P&gt;&lt;P&gt;SET TEMP;&lt;/P&gt;&lt;P&gt;IF _N_=&lt;STRONG&gt;1&lt;/STRONG&gt; THEN SET INSUR_RANK_MAX;&lt;/P&gt;&lt;P&gt;INSUR_RANK_FRAC=INSUR_RANK/INSUR_RANK_MAX;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 28 Nov 2021 01:49:49 GMT</pubDate>
    <dc:creator>Julie4</dc:creator>
    <dc:date>2021-11-28T01:49:49Z</dc:date>
    <item>
      <title>Question regarding weighting  population for each individual</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-regarding-weighting-population-for-each-individual/m-p/782710#M249535</link>
      <description>&lt;P&gt;Hello, I have a question regarding way to weight population for each individual.&lt;/P&gt;&lt;P&gt;I have used syntax below to have fractional rank but found out that I need to weight total population of every insur_level before doing the PROC RANK syntax.&lt;/P&gt;&lt;P&gt;I have created the sample data set to let you understand what I mean easier.&lt;/P&gt;&lt;P&gt;Could anybody help me 'weighting' the population?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julie4_0-1638064146410.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66155i61BE426CF9144FE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julie4_0-1638064146410.png" alt="Julie4_0-1638064146410.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;RANK&lt;/STRONG&gt; DATA=SSTEMP OUT=TEMP;&lt;/P&gt;&lt;P&gt;VAR INSUR_LEVEL;&lt;/P&gt;&lt;P&gt;RANKS INSUR_RANK;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;MEANS&lt;/STRONG&gt; DATA=TEMP NOPRINT;&lt;/P&gt;&lt;P&gt;VAR INSUR_RANK;&lt;/P&gt;&lt;P&gt;OUTPUT OUT=INSUR_RANK_MAX MAX=INSUR_RANK_MAX;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt; TEMP2;&lt;/P&gt;&lt;P&gt;SET TEMP;&lt;/P&gt;&lt;P&gt;IF _N_=&lt;STRONG&gt;1&lt;/STRONG&gt; THEN SET INSUR_RANK_MAX;&lt;/P&gt;&lt;P&gt;INSUR_RANK_FRAC=INSUR_RANK/INSUR_RANK_MAX;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 01:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-regarding-weighting-population-for-each-individual/m-p/782710#M249535</guid>
      <dc:creator>Julie4</dc:creator>
      <dc:date>2021-11-28T01:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding weighting  population for each individual</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-regarding-weighting-population-for-each-individual/m-p/782715#M249536</link>
      <description>&lt;P&gt;Why are you doing this?&amp;nbsp; The more ties you have at the top INSUR_LEVEL, the smaller will the the max_rank, and the larger will be the resulting INSUR_RANK_FRAC for all the other INSUR_LEVEL values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assume you have 100 observations and the top two values were 98 and 99.&amp;nbsp; &amp;nbsp;If those two values have nine observations at 98, and one at 99, you would get different results from one obs at 98 and nine at 99.&amp;nbsp; In the earlier case (one obs at 99) you'd have max rank of 100.&amp;nbsp; In the latter the max_rank would be 96.&amp;nbsp; Is that ok?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 03:06:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-regarding-weighting-population-for-each-individual/m-p/782715#M249536</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2021-11-28T03:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding weighting  population for each individual</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-regarding-weighting-population-for-each-individual/m-p/782732#M249539</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/403670"&gt;@Julie4&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a question regarding way to weight population for each individual.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please explain this further ... What analysis is planned such that weighting is required, and why is it required?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;I have created the sample data set to let you understand what I mean easier.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't understand any of this. Where does weighting fit in? Why do you need weighting? Weighted by what? What variable needs to be weighted? What is the analysis you are doing?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 10:41:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-regarding-weighting-population-for-each-individual/m-p/782732#M249539</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-28T10:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding weighting  population for each individual</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-regarding-weighting-population-for-each-individual/m-p/782734#M249540</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julie4_0-1638097433516.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66159i5BC8DF698122C701/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julie4_0-1638097433516.png" alt="Julie4_0-1638097433516.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm trying to calculate Concentration Index in Health equity and the reference I found above said that the sample must be weighted.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 11:06:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-regarding-weighting-population-for-each-individual/m-p/782734#M249540</guid>
      <dc:creator>Julie4</dc:creator>
      <dc:date>2021-11-28T11:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding weighting  population for each individual</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-regarding-weighting-population-for-each-individual/m-p/782736#M249541</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julie4_0-1638097612653.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66160i81902BD15CE87BE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julie4_0-1638097612653.png" alt="Julie4_0-1638097612653.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate Health Concentration Index and I'm trying to weight the sample because the reference that I found said that the sample must be weighted.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 11:07:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-regarding-weighting-population-for-each-individual/m-p/782736#M249541</guid>
      <dc:creator>Julie4</dc:creator>
      <dc:date>2021-11-28T11:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding weighting  population for each individual</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-regarding-weighting-population-for-each-individual/m-p/782740#M249542</link>
      <description>&lt;P&gt;Okay, thank you, but now explain the connection between the problem you posted and this text. What variable in your data set is the w in the text?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 11:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-regarding-weighting-population-for-each-individual/m-p/782740#M249542</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-28T11:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding weighting  population for each individual</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-regarding-weighting-population-for-each-individual/m-p/782741#M249543</link>
      <description>&lt;P&gt;&lt;SPAN&gt;INSUR_LEVEL should be weighted(analytic weight) by POPULATION.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After that, I should compute fractional rank with the syntax that I wrote.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 11:34:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-regarding-weighting-population-for-each-individual/m-p/782741#M249543</guid>
      <dc:creator>Julie4</dc:creator>
      <dc:date>2021-11-28T11:34:57Z</dc:date>
    </item>
  </channel>
</rss>

