<?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 rename zscores for a dataset with many variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333926#M75321</link>
    <description>&lt;P&gt;Some example data, in the form of a datastep, would be helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My initial guess is to use proc sql (using dictionary.columns) to write out all of the calculations and naming.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have to do it for all of your numeric variables? It will also help to see the code you used to do the one example you mentioned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2017 20:18:45 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2017-02-17T20:18:45Z</dc:date>
    <item>
      <title>how to rename zscores for a dataset with many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333915#M75314</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question about creating zscores for many variables in a file with tens of variables. If I do this for a few variables everything is OK, as I can rename the variables as zscores and drop the redundant names (of the original variables). However, to do this with 50 variables is tedious. I was wondering if anyone can help me automatically assign zscore names that correspond to the original variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:01:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333915#M75314</guid>
      <dc:creator>mikiduta</dc:creator>
      <dc:date>2017-02-17T20:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename zscores for a dataset with many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333926#M75321</link>
      <description>&lt;P&gt;Some example data, in the form of a datastep, would be helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My initial guess is to use proc sql (using dictionary.columns) to write out all of the calculations and naming.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have to do it for all of your numeric variables? It will also help to see the code you used to do the one example you mentioned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:18:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333926#M75321</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-02-17T20:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename zscores for a dataset with many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333928#M75323</link>
      <description>&lt;P&gt;thank you so much! They are all numeric, I am using proc standard:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC STANDARD DATA= mydata&amp;nbsp;MEAN=0 STD=1 OUT=zscoreswk;&lt;BR /&gt;VAR x1&amp;nbsp;x2 x3; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data quality.zscoreswk; set zscoreswk;&lt;BR /&gt;zx1=x1;&lt;BR /&gt;zx2=x2;&lt;BR /&gt;zx3=x3;&lt;/P&gt;&lt;P&gt;drop &lt;SPAN&gt;x1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;x2 x3&lt;/SPAN&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to be able to rename all the 50+ variables so that their new names include the original name zx1.....zx50.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks! Have a nice afternoon!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:23:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333928#M75323</guid>
      <dc:creator>mikiduta</dc:creator>
      <dc:date>2017-02-17T20:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename zscores for a dataset with many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333929#M75324</link>
      <description>&lt;P&gt;Use PROC STDIZE or STANDARD to standardize the variables - which is equivalent to taking the z score if you're using the distribution of the data. You can use variable lists/shortcuts in the VAR statement to simplify the process of listing the variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc stdize data=have out=want method=std;
var LIST_VARS_HERE;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:24:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333929#M75324</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-02-17T20:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename zscores for a dataset with many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333930#M75325</link>
      <description>&lt;P&gt;thank you so much! &amp;nbsp;best regards!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:25:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333930#M75325</guid>
      <dc:creator>mikiduta</dc:creator>
      <dc:date>2017-02-17T20:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename zscores for a dataset with many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333931#M75326</link>
      <description>&lt;P&gt;If it's a series list you can rename it as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
set new_data (rename = (x1-x10=zx1-zx10));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data quality.zscoreswk; 
set zscoreswk (rename = (x1-x3 = zx1-zx3));

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333931#M75326</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-02-17T20:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename zscores for a dataset with many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333932#M75327</link>
      <description>&lt;P&gt;Oh, thank you so much! This is very helpful!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:27:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333932#M75327</guid>
      <dc:creator>mikiduta</dc:creator>
      <dc:date>2017-02-17T20:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename zscores for a dataset with many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333937#M75331</link>
      <description>&lt;P&gt;sorry to bother you again, how do I do this when my variables have various labels (e.g., x1=density of streets, x2= landuse mix etc), is there an easy way to convert all variables into new variables labelled&amp;nbsp;x1....x50, so i could apply the method above? Thanks again:)&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:35:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333937#M75331</guid>
      <dc:creator>mikiduta</dc:creator>
      <dc:date>2017-02-17T20:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename zscores for a dataset with many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333939#M75333</link>
      <description>&lt;P&gt;1. Start a new question, because this is different than your original&lt;/P&gt;
&lt;P&gt;2. Please clarify your terminology, labels are used to show a descriptive information on the variable. A variable name is different.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you asking how to rename variables and keep the same labels?&lt;/P&gt;
&lt;P&gt;Or are you saying your variables aren't labelled as series x1-x10?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333939#M75333</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-02-17T20:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename zscores for a dataset with many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333941#M75335</link>
      <description>&lt;P&gt;Thanks, I will start a new question.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-rename-zscores-for-a-dataset-with-many-variables/m-p/333941#M75335</guid>
      <dc:creator>mikiduta</dc:creator>
      <dc:date>2017-02-17T20:41:20Z</dc:date>
    </item>
  </channel>
</rss>

