<?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: How to apply individual weights to get weighted n value.. in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-individual-weights-to-get-weighted-n-value/m-p/373506#M19544</link>
    <description>I would really appreciate if someone can help with this..</description>
    <pubDate>Thu, 06 Jul 2017 04:16:16 GMT</pubDate>
    <dc:creator>ahhh</dc:creator>
    <dc:date>2017-07-06T04:16:16Z</dc:date>
    <item>
      <title>How to apply individual weights to get weighted n value..</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-individual-weights-to-get-weighted-n-value/m-p/373308#M19531</link>
      <description>&lt;P&gt;Hi, I would really appreciate your help with this...&lt;/P&gt;&lt;P&gt;I have a dataset like this:&lt;/P&gt;&lt;P&gt;data one;&lt;BR /&gt;input id wt ;&lt;BR /&gt;datalines;&lt;BR /&gt;1 2.3&lt;BR /&gt;2 3.1&lt;BR /&gt;3 5.3&lt;BR /&gt;4 2.0&lt;BR /&gt;5 4.0&lt;BR /&gt;6 2.3&lt;BR /&gt;7 1.9&lt;BR /&gt;8 2.0&lt;BR /&gt;9 2.1&lt;BR /&gt;10 2.4&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The n of this dataset=10;&lt;/P&gt;&lt;P&gt;I need to get the weighted n value on this. weight variable is wt. There are no subgroups to use in proc surveyfreq.&lt;/P&gt;&lt;P&gt;How can I get the weighted n value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 14:32:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-individual-weights-to-get-weighted-n-value/m-p/373308#M19531</guid>
      <dc:creator>ahhh</dc:creator>
      <dc:date>2017-07-05T14:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply individual weights to get weighted n value..</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-individual-weights-to-get-weighted-n-value/m-p/373316#M19532</link>
      <description>&lt;P&gt;Well, it was over 40 years ago but I think the formula is just the wt value divided by the sum of all the wt values.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;do until (done1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; set have end=done1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; total_weights + wt;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;do until (done2);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; set have end=done2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; weighted_n = wt / total_weights;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 14:42:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-individual-weights-to-get-weighted-n-value/m-p/373316#M19532</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-07-05T14:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply individual weights to get weighted n value..</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-individual-weights-to-get-weighted-n-value/m-p/373320#M19533</link>
      <description>&lt;P&gt;May I phrased it incorrectly.&lt;BR /&gt;I need weighted n value- since n=10, I am expecting it to be something like this 13.23 ; around the number 10 but higher; And I have been advised to use proc surveyfreq for this...&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 15:05:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-individual-weights-to-get-weighted-n-value/m-p/373320#M19533</guid>
      <dc:creator>ahhh</dc:creator>
      <dc:date>2017-07-05T15:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply individual weights to get weighted n value..</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-individual-weights-to-get-weighted-n-value/m-p/373506#M19544</link>
      <description>I would really appreciate if someone can help with this..</description>
      <pubDate>Thu, 06 Jul 2017 04:16:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-apply-individual-weights-to-get-weighted-n-value/m-p/373506#M19544</guid>
      <dc:creator>ahhh</dc:creator>
      <dc:date>2017-07-06T04:16:16Z</dc:date>
    </item>
  </channel>
</rss>

