<?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: Output proc reg Parameter Estimates without printing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Output-proc-reg-Parameter-Estimates-without-printing/m-p/787344#M251567</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/176501"&gt;@ericdrosano&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;however, if I tell it to&amp;nbsp;&lt;STRONG&gt;not print&lt;/STRONG&gt;, like below, it will not output the parameter estimates. It even says exactly this in the warning.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How are you telling SAS to not print? Do you mean you are using the NOPRINT option in PROC REG? If so, that's what is supposed to happen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want the data set only, with nothing printed, turn off the output via ODS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods exclude all;
ods output ParameterEstimates = parms;
proc reg data=sashelp.baseball;
      model logsalary = nHits nBB YrMajor / clb;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might want to undo the ODS command later to allow output, this would be&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods include all;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More info at: &lt;A href="https://blogs.sas.com/content/iml/2015/05/26/suppress-ods.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2015/05/26/suppress-ods.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Dec 2021 15:56:07 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-12-24T15:56:07Z</dc:date>
    <item>
      <title>Output proc reg Parameter Estimates without printing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-proc-reg-Parameter-Estimates-without-printing/m-p/787343#M251566</link>
      <description>&lt;P&gt;I am borrowing from the code on &lt;A href="https://support.sas.com/kb/22/633.html" target="_self"&gt;THIS&lt;/A&gt; sas help page. I am attempting to output the parameter estimates from a proc reg, but&amp;nbsp;&lt;STRONG&gt;without&lt;/STRONG&gt; printing the results. The code from the SAS help page is as follows:&lt;/P&gt;
&lt;PRE&gt;   ods output ParameterEstimates = parms;
   proc reg data=sashelp.baseball;
      model logsalary = nHits nBB YrMajor / clb;
      quit;
   proc print data=parms noobs;
      run;&lt;/PRE&gt;
&lt;P&gt;This copies the parameter estimate data to the 'parms' dataset, like I want to do with my own dataset; however, if I tell it to&amp;nbsp;&lt;STRONG&gt;not print&lt;/STRONG&gt;, like below, it will not output the parameter estimates. It even says exactly this in the warning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, is there a way to get those estimates into a dataset without having to print it? I have some datasets that are you using hundreds of variables, so I don't want to have to go through printing just to get those results.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Dec 2021 15:45:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-proc-reg-Parameter-Estimates-without-printing/m-p/787343#M251566</guid>
      <dc:creator>ericdrosano</dc:creator>
      <dc:date>2021-12-24T15:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Output proc reg Parameter Estimates without printing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-proc-reg-Parameter-Estimates-without-printing/m-p/787344#M251567</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/176501"&gt;@ericdrosano&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;however, if I tell it to&amp;nbsp;&lt;STRONG&gt;not print&lt;/STRONG&gt;, like below, it will not output the parameter estimates. It even says exactly this in the warning.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How are you telling SAS to not print? Do you mean you are using the NOPRINT option in PROC REG? If so, that's what is supposed to happen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want the data set only, with nothing printed, turn off the output via ODS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods exclude all;
ods output ParameterEstimates = parms;
proc reg data=sashelp.baseball;
      model logsalary = nHits nBB YrMajor / clb;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might want to undo the ODS command later to allow output, this would be&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods include all;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More info at: &lt;A href="https://blogs.sas.com/content/iml/2015/05/26/suppress-ods.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2015/05/26/suppress-ods.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Dec 2021 15:56:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-proc-reg-Parameter-Estimates-without-printing/m-p/787344#M251567</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-12-24T15:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Output proc reg Parameter Estimates without printing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-proc-reg-Parameter-Estimates-without-printing/m-p/787345#M251568</link>
      <description>&lt;P&gt;That worked like a charm!&lt;/P&gt;
&lt;P&gt;It seems that whenever I was running the previous commands on&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;my&lt;/STRONG&gt;&lt;/EM&gt; data, it was overwhelming SAS on my computer. So, I was needing a way around the printing, and your solution was a dandy. Thank you very much!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Also, yes, I was popping &lt;STRONG&gt;noprint&lt;/STRONG&gt; right after proc reg, which, as expected, was killing the printing and the output.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Dec 2021 16:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-proc-reg-Parameter-Estimates-without-printing/m-p/787345#M251568</guid>
      <dc:creator>ericdrosano</dc:creator>
      <dc:date>2021-12-24T16:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Output proc reg Parameter Estimates without printing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-proc-reg-Parameter-Estimates-without-printing/m-p/787346#M251569</link>
      <description>&lt;P&gt;One fix though. Were you say to, undo the &lt;STRONG&gt;ods exclude all &lt;/STRONG&gt;with:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods include all;&lt;/PRE&gt;
&lt;P&gt;seems to be incorrect. I've looked up the fix, and I think it should instead be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods exclude none;&lt;/PRE&gt;
&lt;P&gt;Notwithstanding, your solution was still timely and helpful!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Dec 2021 16:10:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-proc-reg-Parameter-Estimates-without-printing/m-p/787346#M251569</guid>
      <dc:creator>ericdrosano</dc:creator>
      <dc:date>2021-12-24T16:10:38Z</dc:date>
    </item>
  </channel>
</rss>

