<?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: Z score transformation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Z-score-transformation/m-p/736585#M229494</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input A  BP  totchol  BMI  age ;
datalines;
1.222 127 132 22.4 34
1.332 123 133 22.3 44
1.443 234 244 34.2 23
2.344 344 241 54.2 65
3.122 543 234 23.1 44
5.234 353 354 25.5 78
4.344 533 123 45.6 23
2.645 334 234 45.3 16
;
run;

proc stdize data=test out=want;
var _numeric_;
run;

proc means data=want mean std;
var _numeric_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Like this ?&lt;/P&gt;</description>
    <pubDate>Fri, 23 Apr 2021 13:17:44 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-04-23T13:17:44Z</dc:date>
    <item>
      <title>Z score transformation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Z-score-transformation/m-p/736582#M229492</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I will like to correlate&amp;nbsp;continous variable A which has a panel of risk factors e.g. BMI, BP, totchol &amp;nbsp;using a&lt;/P&gt;&lt;P&gt;z-score approach in sas. First I want to transfer each variable to a common scale using a normal (z-score) tranformation where the variable has a mean=0 and SD=1. Then once i transform each variable, i will like to combine then into a single composite variable by adding the tranformed values together. Then i will like to evaluate if A is associated with the single composite variable adjusting for C (age) using regression.&lt;/P&gt;&lt;P&gt;This is a demo data i created&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; test;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; A $ BP $ totchol $ BMI $ age $;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.222 127 132 22.4 34&lt;/P&gt;&lt;P&gt;1.332 123 133 22.3 44&lt;/P&gt;&lt;P&gt;1.443 234 244 34.2 23&lt;/P&gt;&lt;P&gt;2.344 344 241 54.2 65&lt;/P&gt;&lt;P&gt;3.122 543 234 23.1 44&lt;/P&gt;&lt;P&gt;5.234 353 354 25.5 78&lt;/P&gt;&lt;P&gt;4.344 533 123 45.6 23&lt;/P&gt;&lt;P&gt;2.645 334 234 45.3 16&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 13:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Z-score-transformation/m-p/736582#M229492</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2021-04-23T13:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Z score transformation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Z-score-transformation/m-p/736585#M229494</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input A  BP  totchol  BMI  age ;
datalines;
1.222 127 132 22.4 34
1.332 123 133 22.3 44
1.443 234 244 34.2 23
2.344 344 241 54.2 65
3.122 543 234 23.1 44
5.234 353 354 25.5 78
4.344 533 123 45.6 23
2.645 334 234 45.3 16
;
run;

proc stdize data=test out=want;
var _numeric_;
run;

proc means data=want mean std;
var _numeric_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Like this ?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 13:17:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Z-score-transformation/m-p/736585#M229494</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-04-23T13:17:44Z</dc:date>
    </item>
  </channel>
</rss>

