<?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: Creating weighted variables in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Creating-weighted-variables/m-p/249405#M6640</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql ;
select *, days/SUM (days)  as weight
from have
group by id;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 11 Feb 2016 10:05:57 GMT</pubDate>
    <dc:creator>mohamed_zaki</dc:creator>
    <dc:date>2016-02-11T10:05:57Z</dc:date>
    <item>
      <title>Creating weighted variables</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creating-weighted-variables/m-p/249398#M6638</link>
      <description>&lt;P&gt;I'm having a problem that should be easy to solve, but my SAS experience is quite weak. My dataset have multiple records per case, with each record containing data for a single episode = number of days spent on a given&amp;nbsp;hospital unit. I want to divide the number of days spent on each hospital unit with the total number of days spent on all hospital units. I have attached a simplified example of the data structure and added a column of what I want to add to the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appeciate all suggestions,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mats&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 09:48:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creating-weighted-variables/m-p/249398#M6638</guid>
      <dc:creator>matti77</dc:creator>
      <dc:date>2016-02-11T09:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating weighted variables</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creating-weighted-variables/m-p/249405#M6640</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql ;
select *, days/SUM (days)  as weight
from have
group by id;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Feb 2016 10:05:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creating-weighted-variables/m-p/249405#M6640</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2016-02-11T10:05:57Z</dc:date>
    </item>
  </channel>
</rss>

