<?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: Making a new data set from results. in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Making-a-new-data-set-from-results/m-p/473909#M30740</link>
    <description>&lt;P&gt;Sorry, I am not a pro at SAS, Do you have an example of a code that uses this to give me an idea how to implement this?&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jun 2018 21:06:43 GMT</pubDate>
    <dc:creator>matt23</dc:creator>
    <dc:date>2018-06-27T21:06:43Z</dc:date>
    <item>
      <title>Making a new data set from results.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Making-a-new-data-set-from-results/m-p/473906#M30738</link>
      <description>&lt;P&gt;I want to run PROC REG hourly like in the code below:&lt;/P&gt;&lt;PRE&gt;proc sort data=matt (where=(Month in(6,7,8)));
by Month Hour;
run;

proc reg data=matt (where=(Month in(6,7,8)));
model Load=Temperature;
by Hour;
label Load="Load (MW)" Temperature="Temperature (degrees F)";
title 'Load vs Temperature (Summer)';
run;&lt;/PRE&gt;&lt;P&gt;Now, is there a way I can get out a new data out of this that records just the intercept value for every hour. Like this:&lt;/P&gt;&lt;P&gt;input hour intercept;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;0 1234&lt;/P&gt;&lt;P&gt;1 1333&lt;/P&gt;&lt;P&gt;2 1400&lt;/P&gt;&lt;P&gt;...;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 20:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Making-a-new-data-set-from-results/m-p/473906#M30738</guid>
      <dc:creator>matt23</dc:creator>
      <dc:date>2018-06-27T20:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Making a new data set from results.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Making-a-new-data-set-from-results/m-p/473908#M30739</link>
      <description>&lt;P&gt;"ods output parameterestimates=getintercept;" &lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_reg_sect051.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_reg_sect051.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if that doesn't work let me know&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 21:04:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Making-a-new-data-set-from-results/m-p/473908#M30739</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2018-06-27T21:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Making a new data set from results.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Making-a-new-data-set-from-results/m-p/473909#M30740</link>
      <description>&lt;P&gt;Sorry, I am not a pro at SAS, Do you have an example of a code that uses this to give me an idea how to implement this?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 21:06:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Making-a-new-data-set-from-results/m-p/473909#M30740</guid>
      <dc:creator>matt23</dc:creator>
      <dc:date>2018-06-27T21:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Making a new data set from results.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Making-a-new-data-set-from-results/m-p/473912#M30741</link>
      <description>&lt;P&gt;there was a recent post that covered ods in general: &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Extracting-variables-from-statistical-results-for-use-in-other/m-p/473223#M121406" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Extracting-variables-from-statistical-results-for-use-in-other/m-p/473223#M121406&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for your particular code it would be:&lt;/P&gt;&lt;P&gt;ods output parameterestimates=get_intercept (where=(parameter=''));&lt;/P&gt;&lt;P&gt;proc reg data=matt (where=(Month in(6,7,8)));&lt;/P&gt;&lt;P&gt;model Load=Temperature;&lt;/P&gt;&lt;P&gt;by Hour;&lt;/P&gt;&lt;P&gt;label Load="Load (MW)" Temperature="Temperature (degrees F)";&lt;/P&gt;&lt;P&gt;title 'Load vs Temperature (Summer)';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm not sure about this bit: (where=(parameter='')) because i'm not sure what the variable name will be and what the text will be, maybe you want parameter='Intercept', but you'll have to look at the dataset created (called get_intercept) to see what it contains and to confirm that you have the intercept estimate for each hour&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 21:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Making-a-new-data-set-from-results/m-p/473912#M30741</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2018-06-27T21:11:59Z</dc:date>
    </item>
  </channel>
</rss>

