<?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: variable selection method in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516866#M17502</link>
    <description>&lt;P&gt;Which part? What did you try?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to break these down into steps and then try and solve each step individually. If you try and do it all at once you will not get anywhere.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The steps are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Get data from PROC REG into a data set&lt;/P&gt;
&lt;P&gt;2. Graph with SGPLOT - customize after base plot is obtained.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FYI - I am more than happy to help but I'm not going to write the code for you - my personal choice. Someone else may, if that's what you want, you can wait and see if someone else responds.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/245357"&gt;@shahd&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I couldnot figure it out &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Nov 2018 20:41:31 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-11-28T20:41:31Z</dc:date>
    <item>
      <title>variable selection method</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516768#M17494</link>
      <description>&lt;P&gt;in variable selection method to choose the best subset of models. How can I create a plot for cp with p and r adj with p&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my code for all possible regressions&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;reg&lt;/STRONG&gt; data=salary;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model y=x1 x2 x3 x4 x5 x6 x7 x8 x9 x10/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selection=rsquare cp mse adjrsq aic bic best=&lt;STRONG&gt;10&lt;/STRONG&gt; b;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 16:23:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516768#M17494</guid>
      <dc:creator>shahd</dc:creator>
      <dc:date>2018-11-28T16:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: variable selection method</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516772#M17495</link>
      <description>Capture output into a table, using ODS most likely and then graph it using SGPLOT.</description>
      <pubDate>Wed, 28 Nov 2018 16:25:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516772#M17495</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-28T16:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: variable selection method</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516774#M17496</link>
      <description>could you please help me with the code for this part</description>
      <pubDate>Wed, 28 Nov 2018 16:26:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516774#M17496</guid>
      <dc:creator>shahd</dc:creator>
      <dc:date>2018-11-28T16:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: variable selection method</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516779#M17497</link>
      <description>goptions ctitle=black htitle=3.5pct ftitle=swiss&lt;BR /&gt;ctext =magenta htext =3.0pct ftext =swiss&lt;BR /&gt;cback =ligr border;&lt;BR /&gt;symbol1 v=circle c=red h=1 w=2;&lt;BR /&gt;title 'Cp Plot with Reference Lines';&lt;BR /&gt;symbol1 c=green;&lt;BR /&gt;proc reg data=salary;&lt;BR /&gt;model salary=x1 x2 x3 x4 x5 x6 x7 x9 x10&lt;BR /&gt;/ selection=rsquare noprint;&lt;BR /&gt;plot cp.*np.&lt;BR /&gt;/ chocking=red cmallows=blue&lt;BR /&gt;vaxis=0 to 15 by 5 cframe=ligr;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;I wrote this code and it give me error</description>
      <pubDate>Wed, 28 Nov 2018 16:31:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516779#M17497</guid>
      <dc:creator>shahd</dc:creator>
      <dc:date>2018-11-28T16:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: variable selection method</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516811#M17498</link>
      <description>&lt;P&gt;There are two concepts you need to learn.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. How to capture data from SAS procedures into data sets:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/01/09/ods-output-any-statistic.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2017/01/09/ods-output-any-statistic.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. How to graph:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://people.uncw.edu/blumj/stt592/ppt/Introduction%20to%20the%20SGPLOT%20Procedure.pdf" target="_blank"&gt;http://people.uncw.edu/blumj/stt592/ppt/Introduction%20to%20the%20SGPLOT%20Procedure.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've posted answers to your questions that was fully coded and illustrated this, and you've posted several questions that are pretty much all examples of this procedure. It's worth spending the day or so to learn these two topics well enough.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code currently is a mix of PROC REG and GPLOT, and by that I mean you've mixed up procedures entirely. I do not see a GPLOT statement at all in your code though. I do not use GPLOT so cannot comment on that portion. The general recommendation these days is to not use GPLOT, it's to use SGPLOT because it's easier, graphics are higher quality and there are more graph types and options to customize it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/245357"&gt;@shahd&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;goptions ctitle=black htitle=3.5pct ftitle=swiss&lt;BR /&gt;ctext =magenta htext =3.0pct ftext =swiss&lt;BR /&gt;cback =ligr border;&lt;BR /&gt;symbol1 v=circle c=red h=1 w=2;&lt;BR /&gt;title 'Cp Plot with Reference Lines';&lt;BR /&gt;symbol1 c=green;&lt;BR /&gt;proc reg data=salary;&lt;BR /&gt;model salary=x1 x2 x3 x4 x5 x6 x7 x9 x10&lt;BR /&gt;/ selection=rsquare noprint;&lt;BR /&gt;plot cp.*np.&lt;BR /&gt;/ chocking=red cmallows=blue&lt;BR /&gt;vaxis=0 to 15 by 5 cframe=ligr;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;I wrote this code and it give me error&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 17:48:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516811#M17498</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-28T17:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: variable selection method</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516832#M17499</link>
      <description>&lt;P&gt;I couldnot open the second link of how to graph&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 19:16:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516832#M17499</guid>
      <dc:creator>shahd</dc:creator>
      <dc:date>2018-11-28T19:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: variable selection method</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516836#M17500</link>
      <description>&lt;P&gt;This isn't mine, it's from a google search, but appears relatively good.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 19:26:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516836#M17500</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-28T19:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: variable selection method</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516850#M17501</link>
      <description>&lt;P&gt;I couldnot figure it out &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 19:57:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516850#M17501</guid>
      <dc:creator>shahd</dc:creator>
      <dc:date>2018-11-28T19:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: variable selection method</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516866#M17502</link>
      <description>&lt;P&gt;Which part? What did you try?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to break these down into steps and then try and solve each step individually. If you try and do it all at once you will not get anywhere.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The steps are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Get data from PROC REG into a data set&lt;/P&gt;
&lt;P&gt;2. Graph with SGPLOT - customize after base plot is obtained.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FYI - I am more than happy to help but I'm not going to write the code for you - my personal choice. Someone else may, if that's what you want, you can wait and see if someone else responds.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/245357"&gt;@shahd&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I couldnot figure it out &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 20:41:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/variable-selection-method/m-p/516866#M17502</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-28T20:41:31Z</dc:date>
    </item>
  </channel>
</rss>

