<?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: Calculating %RSD of many variable at once in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Calculating-RSD-of-many-variable-at-once/m-p/799008#M314129</link>
    <description>&lt;P&gt;My data has 200 variables. I need that on all of them.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Feb 2022 21:17:42 GMT</pubDate>
    <dc:creator>Job04</dc:creator>
    <dc:date>2022-02-27T21:17:42Z</dc:date>
    <item>
      <title>Calculating %RSD of many variable at once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-RSD-of-many-variable-at-once/m-p/799005#M314127</link>
      <description>&lt;P&gt;My data has dimension of 80x200&amp;nbsp;&lt;/P&gt;
&lt;P&gt;patients in rows and variables in column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want&amp;nbsp; to calculate the %RSD of each variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%RSD= (standard deviation of each variable / mean of variable)*100&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data looks&amp;nbsp; like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ID,gender,AL,BK,MS,DF&lt;BR /&gt;2,F,13.4,7.3,-15.2,9.2&lt;BR /&gt;3,M,12.1,5.1,17.2,8.85&lt;BR /&gt;5,M,10.8,2.9,49.6,8.5&lt;BR /&gt;7,F,9.5,0.7,82,8.15&lt;BR /&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 20:52:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-RSD-of-many-variable-at-once/m-p/799005#M314127</guid>
      <dc:creator>Job04</dc:creator>
      <dc:date>2022-02-27T20:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating %RSD of many variable at once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-RSD-of-many-variable-at-once/m-p/799007#M314128</link>
      <description>&lt;P&gt;This is essentially what SAS calls the CV (&lt;A href="https://en.wikipedia.org/wiki/Coefficient_of_variation" target="_self"&gt;coefficient of variation&lt;/A&gt;) except it is not multiplied by 100.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=have;
    var al bk ms df;
    output out=cv cv=/autoname;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 27 Feb 2022 21:12:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-RSD-of-many-variable-at-once/m-p/799007#M314128</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-27T21:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating %RSD of many variable at once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-RSD-of-many-variable-at-once/m-p/799008#M314129</link>
      <description>&lt;P&gt;My data has 200 variables. I need that on all of them.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 21:17:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-RSD-of-many-variable-at-once/m-p/799008#M314129</guid>
      <dc:creator>Job04</dc:creator>
      <dc:date>2022-02-27T21:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating %RSD of many variable at once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-RSD-of-many-variable-at-once/m-p/799009#M314130</link>
      <description>&lt;P&gt;Use a list of consecutive variables names, such as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;al--bk&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where al is the first variable name and bk is the last variable name; the double dash indicates that the variables in the list are consecutive.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 21:23:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-RSD-of-many-variable-at-once/m-p/799009#M314130</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-27T21:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating %RSD of many variable at once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-RSD-of-many-variable-at-once/m-p/799010#M314131</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=have;
   var _numeric_;
    output out=cv cv=/autoname;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Using _numeric_ will run it on all numeric variables.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/324234"&gt;@Job04&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;My data has 200 variables. I need that on all of them.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 21:21:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-RSD-of-many-variable-at-once/m-p/799010#M314131</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-27T21:21:49Z</dc:date>
    </item>
  </channel>
</rss>

