<?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: double weighted mean in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/double-weighted-mean/m-p/607748#M18465</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/297212"&gt;@ab97_cd&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I add second proc univariate to this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc univariate data=set_out;
by date;
weight w1;
VAR price;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I want to obtain wieghted mean by group variable, using w2 as wieght.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm sorry this just isn't clear to me. You can certainly add a second PROC UNIVARIATE to your code, so I'm not sure what your question really is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If all you want is weighted means, use PROC SUMMARY and not PROC UNIVARIATE.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2019 15:56:04 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-11-27T15:56:04Z</dc:date>
    <item>
      <title>double weighted mean</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/double-weighted-mean/m-p/607742#M18464</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I add second proc univariate to this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc univariate data=set_out;
by date;
weight w1;
VAR price;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I want to obtain wieghted mean by group variable, using w2 as wieght.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:41:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/double-weighted-mean/m-p/607742#M18464</guid>
      <dc:creator>ab97_cd</dc:creator>
      <dc:date>2019-11-27T15:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: double weighted mean</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/double-weighted-mean/m-p/607748#M18465</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/297212"&gt;@ab97_cd&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I add second proc univariate to this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc univariate data=set_out;
by date;
weight w1;
VAR price;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I want to obtain wieghted mean by group variable, using w2 as wieght.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm sorry this just isn't clear to me. You can certainly add a second PROC UNIVARIATE to your code, so I'm not sure what your question really is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If all you want is weighted means, use PROC SUMMARY and not PROC UNIVARIATE.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:56:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/double-weighted-mean/m-p/607748#M18465</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-27T15:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: double weighted mean</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/double-weighted-mean/m-p/607760#M18466</link>
      <description>Hi,&lt;BR /&gt;Within first weighted mean grouping by date, I want to compute again weighted mean using "group" with by option.</description>
      <pubDate>Wed, 27 Nov 2019 16:02:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/double-weighted-mean/m-p/607760#M18466</guid>
      <dc:creator>ab97_cd</dc:creator>
      <dc:date>2019-11-27T16:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: double weighted mean</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/double-weighted-mean/m-p/607778#M18467</link>
      <description>&lt;P&gt;If you have a complex weighting (sampling) design then you probably will need to use PROCSURVEYMEANS instead of UNIVARIATE or MEANS.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_surveymeans_toc.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_surveymeans_toc.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 16:36:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/double-weighted-mean/m-p/607778#M18467</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-11-27T16:36:59Z</dc:date>
    </item>
  </channel>
</rss>

