<?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 Surveyreg with Plots option in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145555#M38743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would help if you posted the LOG (or some part of it - mainly containing the error) so we can figure out what syntax I wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anca.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jan 2014 04:23:42 GMT</pubDate>
    <dc:creator>AncaTilea</dc:creator>
    <dc:date>2014-01-19T04:23:42Z</dc:date>
    <item>
      <title>Proc Surveyreg with Plots option</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145552#M38740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone used Proc Surveyreg with Plots options for graphs?&amp;nbsp; I tried it with ODS graphics on but it didn't work. I also tried LSMEANS statement but SAS told me it is a wrong syntax.&lt;/P&gt;&lt;P&gt;I used SAS 9.3 version.&amp;nbsp; Anyone can help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 21:30:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145552#M38740</guid>
      <dc:creator>monica1230</dc:creator>
      <dc:date>2014-01-17T21:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveyreg with Plots option</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145553#M38741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to SAS support:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_surveyreg_a0000000315.htm" title="http://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_surveyreg_a0000000315.htm"&gt;SAS/STAT(R) 9.22 User's Guide&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You need to use the &lt;STRONG&gt;LSMEANS&lt;/STRONG&gt; statement with the &lt;STRONG&gt;PLOT&lt;/STRONG&gt; option,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this:&lt;/P&gt;&lt;P&gt;data IceCreamDataDomain;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input Grade Spending Income Gender$ @@;&lt;/P&gt;&lt;P&gt;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;7 7 39 M 7 7 38 F 8 12 47 F&lt;/P&gt;&lt;P&gt;9 10 47 M 7 1 34 M 7 10 43 M&lt;/P&gt;&lt;P&gt;7 3 44 M 8 20 60 F 8 19 57 M&lt;/P&gt;&lt;P&gt;7 2 35 M 7 2 36 F 9 15 51 F&lt;/P&gt;&lt;P&gt;8 16 53 F 7 6 37 F 7 6 41 M&lt;/P&gt;&lt;P&gt;7 6 39 M 9 15 50 M 8 17 57 F&lt;/P&gt;&lt;P&gt;8 14 46 M 9 8 41 M 9 8 41 F&lt;/P&gt;&lt;P&gt;9 7 47 F 7 3 39 F 7 12 50 M&lt;/P&gt;&lt;P&gt;7 4 43 M 9 14 46 F 8 18 58 M&lt;/P&gt;&lt;P&gt;9 9 44 F 7 2 37 F 7 1 37 M&lt;/P&gt;&lt;P&gt;7 4 44 M 7 11 42 M 9 8 41 M&lt;/P&gt;&lt;P&gt;8 10 42 M 8 13 46 F 7 2 40 F&lt;/P&gt;&lt;P&gt;9 6 45 F 9 11 45 M 7 2 36 F&lt;/P&gt;&lt;P&gt;7 9 46 F&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;data StudentTotals;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input Grade _TOTAL_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;7 1824&lt;/P&gt;&lt;P&gt;8 1025&lt;/P&gt;&lt;P&gt;9 1151&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;data IceCreamDataDomain;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set IceCreamDataDomain;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if Grade=7 then Prob=20/1824;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if Grade=8 then Prob=9/1025;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if Grade=9 then Prob=11/1151;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Weight=1/Prob;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;title1 'Ice Cream Spending Analysis';&lt;/P&gt;&lt;P&gt;title2 'Compare Domain Statistics';&lt;/P&gt;&lt;P&gt;proc surveyreg data=IceCreamDataDomain total=StudentTotals;&lt;/P&gt;&lt;P&gt;&amp;nbsp; strata Grade;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class Gender;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model Spending = Gender / vadjust=none;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;lsmeans&lt;/STRONG&gt; Gender / diff plots=(diff meanplot(cl));&lt;/P&gt;&lt;P&gt;&amp;nbsp; weight Weight;&lt;/P&gt;&lt;P&gt;run;&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;Anca.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 00:31:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145553#M38741</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2014-01-18T00:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveyreg with Plots option</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145554#M38742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Anca! This is exactly what I did based on the SAS User Guide. But it didn't work. SAS log indicated wrong syntax. This is frustrating but I will try to run it again.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 02:39:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145554#M38742</guid>
      <dc:creator>monica1230</dc:creator>
      <dc:date>2014-01-18T02:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveyreg with Plots option</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145555#M38743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would help if you posted the LOG (or some part of it - mainly containing the error) so we can figure out what syntax I wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anca.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 04:23:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145555#M38743</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2014-01-19T04:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveyreg with Plots option</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145556#M38744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to run proc surveyreg with plots option: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ods graphics on;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc surveyreg plots=fit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; model height=weight;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ods graphics off;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get error, the log indicates as follow:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3330&amp;nbsp; ods graphics on;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3331&amp;nbsp; proc surveyreg plots=fit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -----&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, ALPHA, DATA, METHOD, MISSING, N,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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; NOMCAR, ORDER, R, TRUNCATE, VARMETHOD.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3332&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model height=weight;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is SAS didn't have option PLOTS for me? Again, I have SAS 9.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 18:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145556#M38744</guid>
      <dc:creator>monica1230</dc:creator>
      <dc:date>2014-01-21T18:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveyreg with Plots option</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145557#M38745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using &lt;/P&gt;&lt;P&gt;Proc surveyreg&amp;nbsp; data = yourdata plots =....&lt;/P&gt;&lt;P&gt;Maybe it needs you to specify the data...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 19:50:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145557#M38745</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2014-01-21T19:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveyreg with Plots option</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145558#M38746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I specified the dataset name but it still gave me the same error. I am out of ideas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 02:05:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145558#M38746</guid>
      <dc:creator>monica1230</dc:creator>
      <dc:date>2014-01-22T02:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveyreg with Plots option</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145559#M38747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no plots= option in the proc surveyreg statement in version 9.3. A fitplot was introduced in version 13, and for models involving a single regressor only (such as yours).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a workaround, look into the effectplot of proc plm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 02:52:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145559#M38747</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-01-22T02:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveyreg with Plots option</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145560#M38748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As &lt;A __default_attr="2746" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; noted,the plots option goes with the lsmeans statement,as I initially posted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 16:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145560#M38748</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2014-01-22T16:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveyreg with Plots option</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145561#M38749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for solving the puzzle for me. I will find another way, may be sgplot to graph the fitplot. I am not familiar with proc plm but I will look into it.&lt;/P&gt;&lt;P&gt;YuehYing &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 16:17:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145561#M38749</guid>
      <dc:creator>monica1230</dc:creator>
      <dc:date>2014-01-22T16:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveyreg with Plots option</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145562#M38750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anca, thank you for pointing that out. I did use lsmeans statement with plots option but it did not generate fitplot which what I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS should revise their 13.1 user guide because here, it says that PLOTS is one of the options available in the proc surveyreg statement.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;support.sas.com/documentation/cdl/en/statug/66859/HTML/default/viewer.htm#statug_surveyreg_syntax01.htm&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 16:27:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145562#M38750</guid>
      <dc:creator>monica1230</dc:creator>
      <dc:date>2014-01-22T16:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveyreg with Plots option</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145563#M38751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're using proc surveyreg as noted in your example above I don't believe you need surveyreg, but proc reg will suffice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a strata, wieght, cluster, contrast or domain statement as well then you probably need surveyreg. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 16:29:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145563#M38751</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-01-22T16:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveyreg with Plots option</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145564#M38752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Reeze. I do need to use surveyreg with strata, cluster, weight and domain statements for analyzing NHANES data. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 16:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Surveyreg-with-Plots-option/m-p/145564#M38752</guid>
      <dc:creator>monica1230</dc:creator>
      <dc:date>2014-01-22T16:36:05Z</dc:date>
    </item>
  </channel>
</rss>

