<?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: Converting Zscore to standard deviation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Converting-Zscore-to-standard-deviation/m-p/464817#M118540</link>
    <description>&lt;P&gt;If you have the 95th percentile value I would expect that you are looking for 1.2 * 95thPercentile.&lt;/P&gt;
&lt;P&gt;If you don't have the 95th percentile but the data is normally distributed and you know the mean and standard deviation:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;q = quantile(&lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;'normal'&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;,&lt;/FONT&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;.95&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;,mean,std);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;You might get negative values depending on your parameters with the small percentiles like 0.01 from the CDC data for some age/gender combinations&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 May 2018 15:42:23 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-05-24T15:42:23Z</dc:date>
    <item>
      <title>Converting Zscore to standard deviation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-Zscore-to-standard-deviation/m-p/464359#M118381</link>
      <description>&lt;P&gt;I have a zscore&amp;nbsp;(BMI-for-age Z-score) variable. I'd like to convert it to standard deviation. Using below approach, am I converting Zscore to STD correctly here? I will use resulting STD to define overweight where STD&amp;gt;2 and obesity where STD &amp;gt;3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc standard  mean=0 std=1 data=x out=temp;
var zcore;
run;

/*and merge the output data back to original data.*/ &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data x;
input zscore;
cards;
-0.13
1
-0.41
2.2
0.84
-0.06
0.19
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 13:16:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-Zscore-to-standard-deviation/m-p/464359#M118381</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-05-23T13:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Zscore to standard deviation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-Zscore-to-standard-deviation/m-p/464377#M118388</link>
      <description>&lt;P&gt;To clarify your question, is the data after the PROC STANDARD call the RESULT of the call? I am confused because you are calling the data set 'x', which is the name of the input data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the following program, the input data is the variable x in the data set Have.&lt;/P&gt;
&lt;P&gt;The call to PROC STANDARD creates a new variable (x - mean(x)) / std(x) in the Temp data set.&lt;/P&gt;
&lt;P&gt;The data sets are then merged.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
input x @@;
cards;
-13 10 -4.1 22 8.4 -0.6 1.9
;

proc means data=Have;
var x;
run;

proc standard  mean=0 std=1 data=Have out=temp;
var x;
run;

/*and merge the output data back to original data.*/ 
data Want;
merge Have Temp(rename=(x=XStd));
run;

proc print data=Want; run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 13:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-Zscore-to-standard-deviation/m-p/464377#M118388</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-05-23T13:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Zscore to standard deviation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-Zscore-to-standard-deviation/m-p/464395#M118394</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/132289"&gt;@Cruise&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a zscore&amp;nbsp;(BMI-for-age Z-score) variable. I'd like to convert it to standard deviation. Using below approach, am I converting Zscore to STD correctly here? I will use resulting STD to define overweight where STD&amp;gt;2 and obesity where STD &amp;gt;3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc standard  mean=0 std=1 data=x out=temp;
var zcore;
run;

/*and merge the output data back to original data.*/ &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data x;
input zscore;
cards;
-0.13
1
-0.41
2.2
0.84
-0.06
0.19
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If this is being used with children's data your approach will not match the CDC guidelines for overweight or obesity which uses percentiles from some standardized by age and gender&amp;nbsp;data,&amp;nbsp;85th and 95th percentiles being some key points.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably need to look closer at &lt;A href="https://www.cdc.gov/nccdphp/dnpao/growthcharts/resources/sas.htm" target="_blank"&gt;https://www.cdc.gov/nccdphp/dnpao/growthcharts/resources/sas.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;which has programs, data sets, instructions for calculating child obesity and some documentation as to why the cut-offs were set. The programs result in direct percentiles of height/weight by age.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 14:29:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-Zscore-to-standard-deviation/m-p/464395#M118394</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-23T14:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Zscore to standard deviation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-Zscore-to-standard-deviation/m-p/464402#M118398</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Thanks. The goal of this exercise&amp;nbsp;is to define overweight and obesity by both CDC and WHO for comparison. I used resources from their websites. Obesity and overweight using CDC guidelines were defined and plotted. Now I'm dealing with WHO resource where final data&amp;nbsp;with Z-score for&amp;nbsp;BMI-for-age&amp;nbsp;is just created using their macro. I figured WHO recommends using Z-score not standard deviation of it. Overweight&amp;nbsp;defined by&amp;nbsp;CDC is ~15% vs 13.5% by WHO. However, I'm&amp;nbsp;now puzzled with obesity prevalence produced from my data following WHO&amp;nbsp;guideline is being&amp;nbsp;as low as 4.19&amp;nbsp;defined as &amp;gt;3SD (z-score)&amp;nbsp;vs obesity prevalence&amp;nbsp;defined by CDC's BMI percentile &amp;gt;95pctl was in the range of 15-17%.&amp;nbsp; Nice&amp;nbsp;chatting with you ballardw.&amp;nbsp;Sound like you have a experience on the subject&amp;nbsp;matter. Any other&amp;nbsp;advice is welcome. &amp;nbsp;By the way, I created standard deviations of zscore and bmi as well just for curiosity. Resulting numbers didn't make sense.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 14:52:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-Zscore-to-standard-deviation/m-p/464402#M118398</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-05-23T14:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Zscore to standard deviation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-Zscore-to-standard-deviation/m-p/464423#M118408</link>
      <description>&lt;P&gt;Yes I work with this also had to explain to some data partners why some prevalence changes were partially caused by CDC changing to the WHO definitions&amp;nbsp;of obesity&amp;nbsp;for children under 2 years of age.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;You might get some odd prevalence rates if you are working from "real" data and have not filtered, or at least flagged for consideration, what CDC refers to a "biologically improbable values". I know that if I accepted the as entered from one of my sources blindly we have nearly 25 percent of the children exceeding the 95th percentile with an additional 15 percent below the 5th percentile. Closer look at the data actually shows: values recorded in pounds are kg or vice versa, similar height/length measurements type error, weight transposed with height/length, date of birth and/or date of measurement likely incorrect (third measure for a child now having a DOB 10 months after the previous measurement), people entering numeric values such as 999 or 9999 when not actually measured (not a rule implemented in collection process), and even the DOB and date of measurement transposed (measured before birth).&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 15:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-Zscore-to-standard-deviation/m-p/464423#M118408</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-23T15:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Zscore to standard deviation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-Zscore-to-standard-deviation/m-p/464437#M118414</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;My data is clean enough thanks to IT department. By the way, do you know how to calculate 120% of 95th percentile of BMI? Any tutorials? I'm trying to define extreme obesity since multiple literature suggested 120% of 95th percentile of BMI is better than 99th percentile of BMI-for-age-percentile.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 16:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-Zscore-to-standard-deviation/m-p/464437#M118414</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-05-23T16:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Zscore to standard deviation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-Zscore-to-standard-deviation/m-p/464817#M118540</link>
      <description>&lt;P&gt;If you have the 95th percentile value I would expect that you are looking for 1.2 * 95thPercentile.&lt;/P&gt;
&lt;P&gt;If you don't have the 95th percentile but the data is normally distributed and you know the mean and standard deviation:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;q = quantile(&lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;'normal'&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;,&lt;/FONT&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;.95&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;,mean,std);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;You might get negative values depending on your parameters with the small percentiles like 0.01 from the CDC data for some age/gender combinations&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 15:42:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-Zscore-to-standard-deviation/m-p/464817#M118540</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-24T15:42:23Z</dc:date>
    </item>
  </channel>
</rss>

