<?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: Weighted PROC SURVEYMEANS (applied in NHANES data) generating incorrect standard errors in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Weighted-PROC-SURVEYMEANS-applied-in-NHANES-data-generating/m-p/245216#M12921</link>
    <description>&lt;P&gt;When posting links to sites in this forum make sure that there is &lt;STRONG&gt;no&lt;/STRONG&gt; punction at the end as that gets treated as part of the link and hence get "link not found". So place a space before the ")." in the link you posted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Surveymeans reports Standard Deviation of the SUM when requested using STD.&lt;/P&gt;
&lt;P&gt;You might want to look into requesting LCLM UCLM for confidence intervals of the mean to look at dispersion.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2016 16:10:29 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-01-21T16:10:29Z</dc:date>
    <item>
      <title>Weighted PROC SURVEYMEANS (applied in NHANES data) generating incorrect standard errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Weighted-PROC-SURVEYMEANS-applied-in-NHANES-data-generating/m-p/244876#M12918</link>
      <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I am currently taking a very basic look at variable distributions in (publicily accessible) NHANES data - National Health and Nutrition Examination Survey. &amp;nbsp;Since my data contains survey weights,&amp;nbsp;I'm using&amp;nbsp;PROC SURVEYMEANS to generate estimates of means for continuous variables and the corresponding standard errors. Unfortunately I am getting nonsense values for estimates of the standard error (and standard deviation).&amp;nbsp;&lt;/SPAN&gt;In an online tutorial page, NHANES provides code and explanation for using PROC SURVEYMEANS to estimate means and standard errors in their weighted data (see step 2 of&amp;nbsp;&lt;A href="http://www.cdc.gov/nchs/tutorials/NHANES/NHANESAnalyses/DescriptiveStatistics/Task3b.htm" target="_blank"&gt;http://www.cdc.gov/nchs/tutorials/NHANES/NHANESAnalyses/DescriptiveStatistics/Task3b.htm&lt;/A&gt; ).&amp;nbsp;As far as I can tell, I have correctly contructed my weight variable and have appropriately specified the STRATA&amp;nbsp;and CLUSTER&amp;nbsp;statements in PROC SURVEYMEANS.&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;I can't figure out why but I&amp;nbsp;get really high values for standard deviation and really low values for standard error. &amp;nbsp;The means however look correct. &amp;nbsp;I have included my&amp;nbsp;PROC SURVEYMEANS code below. &amp;nbsp;Since this is all publicly accessible data, I have also included my output below.&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;Thanks for any help.&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;U&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;CODE:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;surveymeans&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;=NHANES_DataMerge&amp;nbsp;&lt;SPAN class="s2"&gt;NOBS&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;MEAN&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;STDERR&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;STD&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;strata&lt;/SPAN&gt; sdmvstra;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;cluster&lt;/SPAN&gt; sdmvpsu;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;var&lt;/SPAN&gt; LBDLDL RIDAGEYR BMXBMI;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;weight&lt;/SPAN&gt; weight;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;ods&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;output&lt;/SPAN&gt; Statistics=printdata;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN class="s3"&gt;; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;PRINT&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;DATA&lt;/SPAN&gt;=work.printdata;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;U&gt;&lt;STRONG&gt;OUTPUT:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p2"&gt;Obs&amp;nbsp; &amp;nbsp; VarName &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VarLabel &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; N &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Mean&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;StdErr&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;StdDev&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;1 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;LBDLDL&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;LDL-cholesterol (mg/dL)&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;5245 &amp;nbsp; &amp;nbsp; &amp;nbsp; 127.594611&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;0.711109&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;1912657887&lt;/P&gt;
&lt;P class="p1"&gt;2 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;RIDAGEYR&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;Age at Screening Adjudicated - Recode&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;5245 &amp;nbsp; &amp;nbsp; &amp;nbsp; 52.729637&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;0.189132 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;779619697&lt;/P&gt;
&lt;P class="p1"&gt;3 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;BMXBMI&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;Body Mass Index (kg/m**2)&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;5245 &amp;nbsp; &amp;nbsp; &amp;nbsp; 28.604494&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;0.128091 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;417023923&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 20:45:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Weighted-PROC-SURVEYMEANS-applied-in-NHANES-data-generating/m-p/244876#M12918</guid>
      <dc:creator>mconover</dc:creator>
      <dc:date>2016-01-21T20:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted PROC SURVEYMEANS (applied in NHANES data) generating incorrect standard errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Weighted-PROC-SURVEYMEANS-applied-in-NHANES-data-generating/m-p/245216#M12921</link>
      <description>&lt;P&gt;When posting links to sites in this forum make sure that there is &lt;STRONG&gt;no&lt;/STRONG&gt; punction at the end as that gets treated as part of the link and hence get "link not found". So place a space before the ")." in the link you posted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Surveymeans reports Standard Deviation of the SUM when requested using STD.&lt;/P&gt;
&lt;P&gt;You might want to look into requesting LCLM UCLM for confidence intervals of the mean to look at dispersion.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 16:10:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Weighted-PROC-SURVEYMEANS-applied-in-NHANES-data-generating/m-p/245216#M12921</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-01-21T16:10:29Z</dc:date>
    </item>
  </channel>
</rss>

