<?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: que regarding proc standard in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/que-regarding-proc-standard/m-p/88188#M4318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your first block of code will standardize all three variables to a mean of 0, and a standard deviation of 1.&amp;nbsp; This would be a z score.&amp;nbsp; None of the other code blocks will give z scores, but will instead give scaled scores that will look very much like the raw scores, as you are standardizing to the sample mean and standard deviation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2012 17:47:03 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2012-06-20T17:47:03Z</dc:date>
    <item>
      <title>que regarding proc standard</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/que-regarding-proc-standard/m-p/88187#M4317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to calculate the z-score for the variable that I have in my dataset using proc standard. All the columns have different mean and std, so my question is should I use a common mean and std deviation for calculating the z-score or I should calculate it separately?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in terms of code:&lt;/P&gt;&lt;P&gt;PROC STANDARD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA = X&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MEAN = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STD = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUT = ZSCORE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A /* it has a mean of 5 and std of 5 */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B /* it has a mean of 500 and std of 7 */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C /* it has a mean of 900 and std of 1000 */&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR I should use this approach?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC STANDARD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA = X&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MEAN = 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STD = 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUT = ZSCORE_a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A /* it has a mean of 5 and std of 5 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC STANDARD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA = X&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MEAN = 500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STD = 7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUT = ZSCORE_b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B /* it has a mean of 500 and std of 7 */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC STANDARD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA = X&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MEAN = 900&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STD = 1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUT = ZSCORE_c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C /* it has a mean of 900 and std of 1000 */&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;and then merge all cols&lt;/P&gt;&lt;P&gt;I really appreciate your time and guidance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 16:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/que-regarding-proc-standard/m-p/88187#M4317</guid>
      <dc:creator>Pritish</dc:creator>
      <dc:date>2012-06-20T16:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: que regarding proc standard</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/que-regarding-proc-standard/m-p/88188#M4318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your first block of code will standardize all three variables to a mean of 0, and a standard deviation of 1.&amp;nbsp; This would be a z score.&amp;nbsp; None of the other code blocks will give z scores, but will instead give scaled scores that will look very much like the raw scores, as you are standardizing to the sample mean and standard deviation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 17:47:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/que-regarding-proc-standard/m-p/88188#M4318</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-06-20T17:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: que regarding proc standard</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/que-regarding-proc-standard/m-p/88189#M4319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve, thanks for your reply!&lt;/P&gt;&lt;P&gt;So would it be fair, if I standardzied my data with a mean of 0 and std of 1? Since all my variable have different mean and std. Or should I try to get kind of avg of mean, std and plug it my first block of code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 17:55:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/que-regarding-proc-standard/m-p/88189#M4319</guid>
      <dc:creator>Pritish</dc:creator>
      <dc:date>2012-06-20T17:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: que regarding proc standard</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/que-regarding-proc-standard/m-p/88190#M4320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want z scores, use your first block of code exactly as it is.&amp;nbsp; The mean= and std= options give the TARGET values, not the values of your sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another approach is PROC STDIZE.&amp;nbsp; Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc stdize data=X out=zscore sprefix=z_ oprefix=orig;&lt;/P&gt;&lt;P&gt;var A B C;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give an output dataset with the original variables prefixed with orig and the z scores prefixed with z_.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 18:08:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/que-regarding-proc-standard/m-p/88190#M4320</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-06-20T18:08:41Z</dc:date>
    </item>
  </channel>
</rss>

