<?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: Divide the column value by the number of occurrences in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Divide-the-column-value-by-the-number-of-occurrences/m-p/702584#M215192</link>
    <description>&lt;P&gt;Sorry for the bad asking. ID is the grouping. Values in value column are the same for every ID.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 17:39:07 GMT</pubDate>
    <dc:creator>max_ros</dc:creator>
    <dc:date>2020-11-30T17:39:07Z</dc:date>
    <item>
      <title>Divide the column value by the number of occurrences</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Divide-the-column-value-by-the-number-of-occurrences/m-p/702570#M215184</link>
      <description>&lt;P&gt;Hello everyone!&lt;BR /&gt;I have a dataset where in a column I have repeated but different values for some determinations of another variable (I don't know the number) and I would like to create a new column that contains these values divided by the number of occurrences. How can I do this with simple programming?&lt;/P&gt;&lt;P&gt;Attached the dataset with the "value" column of the values to be divided and the "value_1" column as I would like it (value_1 is the coloumn I 'd like to obtain).&lt;BR /&gt;Thanks again for those who want to help me&lt;BR /&gt;max&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 17:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Divide-the-column-value-by-the-number-of-occurrences/m-p/702570#M215184</guid>
      <dc:creator>max_ros</dc:creator>
      <dc:date>2020-11-30T17:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Divide the column value by the number of occurrences</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Divide-the-column-value-by-the-number-of-occurrences/m-p/702575#M215186</link>
      <description>&lt;P&gt;You don't mention the role of ID in this analysis. Is the grouping and the count of the number of occurrences determined by ID or by VALUE?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should we ignore the typographical errors in the ID column and assume that these will always be spelled the same for each value of ID? Or&amp;nbsp; does the problem solution have to fix the typographical errors first?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 17:30:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Divide-the-column-value-by-the-number-of-occurrences/m-p/702575#M215186</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-11-30T17:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Divide the column value by the number of occurrences</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Divide-the-column-value-by-the-number-of-occurrences/m-p/702584#M215192</link>
      <description>&lt;P&gt;Sorry for the bad asking. ID is the grouping. Values in value column are the same for every ID.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 17:39:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Divide-the-column-value-by-the-number-of-occurrences/m-p/702584#M215192</guid>
      <dc:creator>max_ros</dc:creator>
      <dc:date>2020-11-30T17:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Divide the column value by the number of occurrences</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Divide-the-column-value-by-the-number-of-occurrences/m-p/702587#M215194</link>
      <description>&lt;P&gt;If you fix the mis-spellings under ID, this should work (otherwise you don't get the answers you want)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=example;
    tables id/noprint out=counts;
run;
proc sort data=example;
    by id;
run;
data want;
    merge example counts;
    by id;
    value1 = value/count;
    keep id value value1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Nov 2020 17:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Divide-the-column-value-by-the-number-of-occurrences/m-p/702587#M215194</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-11-30T17:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Divide the column value by the number of occurrences</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Divide-the-column-value-by-the-number-of-occurrences/m-p/703409#M215515</link>
      <description>tks a lot!&lt;BR /&gt;&lt;BR /&gt;it works perfectly!&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Dec 2020 15:32:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Divide-the-column-value-by-the-number-of-occurrences/m-p/703409#M215515</guid>
      <dc:creator>max_ros</dc:creator>
      <dc:date>2020-12-03T15:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Divide the column value by the number of occurrences</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Divide-the-column-value-by-the-number-of-occurrences/m-p/703411#M215516</link>
      <description>&lt;P&gt;thks a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 15:33:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Divide-the-column-value-by-the-number-of-occurrences/m-p/703411#M215516</guid>
      <dc:creator>max_ros</dc:creator>
      <dc:date>2020-12-03T15:33:11Z</dc:date>
    </item>
  </channel>
</rss>

