<?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: PROC SURVEYMEANS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYMEANS/m-p/708303#M34291</link>
    <description>In my code, I have two domains (eligible=1 or 2), but when I changed my code, &lt;BR /&gt;&lt;BR /&gt;proc surveymeans data=nh.outcomes_joint_240 nomcar;&lt;BR /&gt;   STRATA sdmvstra;  &lt;BR /&gt;CLUSTER sdmvpsu;  &lt;BR /&gt;var BMXBMI;&lt;BR /&gt;CLASS alpha16 age RIAGENDR PIR SDDSRVYR RIDRETH1; &lt;BR /&gt;WEIGHT glucwt4yr;&lt;BR /&gt;domain eligible;&lt;BR /&gt;by alpha16;&lt;BR /&gt;run;&lt;BR /&gt;it did not work as well. then I changed the code like below, it worked.&lt;BR /&gt;&lt;BR /&gt;proc surveymeans data=nh.outcomes_joint_240 nomcar;&lt;BR /&gt;   STRATA sdmvstra;  &lt;BR /&gt;CLUSTER sdmvpsu;  &lt;BR /&gt;var BMXBMI;&lt;BR /&gt;CLASS alpha16 age RIAGENDR PIR SDDSRVYR RIDRETH1; &lt;BR /&gt;WEIGHT glucwt4yr;&lt;BR /&gt;domain alpha16;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;But I wonder is this the right code since I did not use my domain variable.&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
    <pubDate>Sat, 26 Dec 2020 22:53:10 GMT</pubDate>
    <dc:creator>knighsson</dc:creator>
    <dc:date>2020-12-26T22:53:10Z</dc:date>
    <item>
      <title>PROC SURVEYMEANS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYMEANS/m-p/708302#M34290</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to get a table as follows: (this is the proc means results)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="111111111111.PNG" style="width: 421px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53035i3A9335F9FBFE4ED7/image-size/large?v=v2&amp;amp;px=999" role="button" title="111111111111.PNG" alt="111111111111.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;however, when I used proc surveymeans, code are below&lt;/P&gt;
&lt;PRE&gt;proc surveymeans data=nh.outcomes;
   STRATA sdmvstra;  
CLUSTER sdmvpsu;  
var BMXBMI;
CLASS alpha16; 
WEIGHT glucwt4yr;
domain eligible;
run;&lt;/PRE&gt;
&lt;P&gt;I only get the table like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="22222222222.PNG" style="width: 646px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53036i7EC8647DC5803714/image-size/large?v=v2&amp;amp;px=999" role="button" title="22222222222.PNG" alt="22222222222.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;could you please tell what went wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Dec 2020 22:36:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYMEANS/m-p/708302#M34290</guid>
      <dc:creator>knighsson</dc:creator>
      <dc:date>2020-12-26T22:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYMEANS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYMEANS/m-p/708303#M34291</link>
      <description>In my code, I have two domains (eligible=1 or 2), but when I changed my code, &lt;BR /&gt;&lt;BR /&gt;proc surveymeans data=nh.outcomes_joint_240 nomcar;&lt;BR /&gt;   STRATA sdmvstra;  &lt;BR /&gt;CLUSTER sdmvpsu;  &lt;BR /&gt;var BMXBMI;&lt;BR /&gt;CLASS alpha16 age RIAGENDR PIR SDDSRVYR RIDRETH1; &lt;BR /&gt;WEIGHT glucwt4yr;&lt;BR /&gt;domain eligible;&lt;BR /&gt;by alpha16;&lt;BR /&gt;run;&lt;BR /&gt;it did not work as well. then I changed the code like below, it worked.&lt;BR /&gt;&lt;BR /&gt;proc surveymeans data=nh.outcomes_joint_240 nomcar;&lt;BR /&gt;   STRATA sdmvstra;  &lt;BR /&gt;CLUSTER sdmvpsu;  &lt;BR /&gt;var BMXBMI;&lt;BR /&gt;CLASS alpha16 age RIAGENDR PIR SDDSRVYR RIDRETH1; &lt;BR /&gt;WEIGHT glucwt4yr;&lt;BR /&gt;domain alpha16;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;But I wonder is this the right code since I did not use my domain variable.&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Sat, 26 Dec 2020 22:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYMEANS/m-p/708303#M34291</guid>
      <dc:creator>knighsson</dc:creator>
      <dc:date>2020-12-26T22:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYMEANS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYMEANS/m-p/708304#M34292</link>
      <description>the eligible domain has been defined as follows:&lt;BR /&gt;&lt;BR /&gt;data nh.outcomes;&lt;BR /&gt;set nh.outcome;&lt;BR /&gt;if alpha16=.  then eligible=2;&lt;BR /&gt;else eligible=1;&lt;BR /&gt;run;</description>
      <pubDate>Sat, 26 Dec 2020 22:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYMEANS/m-p/708304#M34292</guid>
      <dc:creator>knighsson</dc:creator>
      <dc:date>2020-12-26T22:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYMEANS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYMEANS/m-p/708362#M34294</link>
      <description>&lt;P&gt;I think the problem with the first code version is the BY statement. It requests a separate analysis for each value of alpha16. Try keeping the DOMAIN eligible statement but dropping the BY statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will also need the MISSING option in the proc surveymeans statement, otherwise your eligible=2 domain will be ignored.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Dec 2020 23:05:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYMEANS/m-p/708362#M34294</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-12-27T23:05:42Z</dc:date>
    </item>
  </channel>
</rss>

