<?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: Save Logistic regression results: question on by _impulation_; in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Save-Logistic-regression-results-question-on-by-impulation/m-p/104276#M9102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can always use ODS Output to select the output tables as data sets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ods output OddsRatios=OddsRatios;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc logistic data=outmi outest=outreg covout ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; model Oxygen= RunTime RunPulse;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; by _Imputation_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see the available output tables produced by ODS, put ODS TRACE ON; ahead of your PROC LOGISITIC step.&amp;nbsp; The tables names will appear in the log:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Output Added:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Name:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OddsRatios&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Label:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Odds Ratios&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Template:&amp;nbsp;&amp;nbsp; Stat.Logistic.OddsRatios&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Path:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Logistic.ByGroup5.OddsRatios&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Dec 2012 14:24:18 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2012-12-20T14:24:18Z</dc:date>
    <item>
      <title>Save Logistic regression results: question on by _impulation_;</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Save-Logistic-regression-results-question-on-by-impulation/m-p/104273#M9099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey SAS EG users,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to SAS and my question is very basic and may have been asked before. I apologize for that and appreciate if you could point me the link to previous posts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to save results from Logistic regression. I followed the Example 55.3, Reading Regression Results from a DATA= EST Data Set, from SAS 9.22 User Guide. But I met an error. Any suggestion are appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code and data is as following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data xx;&lt;/P&gt;&lt;P&gt;input y ex f;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;0 0 45&lt;/P&gt;&lt;P&gt;0 1 5&lt;/P&gt;&lt;P&gt;1 0 10&lt;/P&gt;&lt;P&gt;1 1 40&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc logistic data=xx descending outest=outreg covout;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class ex;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model y = ex;&lt;/P&gt;&lt;P&gt;&amp;nbsp; freq&amp;nbsp; f;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by _Imputation_;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mianalyze data=outreg edf=98;&lt;/P&gt;&lt;P&gt;modeleffects intercept ex;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the error message in the log file as the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE LOGISTIC used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;ERROR: Variable _IMPUTATION_ not found.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.OUTREG may be incomplete.&amp;nbsp; When this step was stopped there were 0 observations and 0 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.OUTREG was not replaced because this step was stopped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 15:44:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Save-Logistic-regression-results-question-on-by-impulation/m-p/104273#M9099</guid>
      <dc:creator>nzhou</dc:creator>
      <dc:date>2012-12-19T15:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Save Logistic regression results: question on by _impulation_;</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Save-Logistic-regression-results-question-on-by-impulation/m-p/104274#M9100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The example you are looking at used a data set named OUTMI created by PROC MI that added the varaible _IMPUTATION_. Your data set XX doesn't contain that variable so there is an error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 16:20:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Save-Logistic-regression-results-question-on-by-impulation/m-p/104274#M9100</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-12-19T16:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Save Logistic regression results: question on by _impulation_;</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Save-Logistic-regression-results-question-on-by-impulation/m-p/104275#M9101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ballaardw,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Back a few pages from the User`s guide, the example does use an imputed data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still, my questions remains-- how to save the estimates, odds, standard errors and P values to an external file? I use remote access so that I cannot see the regression result directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried: outest=dataset but it only give me the estimates but not the rest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your time. Any suggestions are appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 13:35:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Save-Logistic-regression-results-question-on-by-impulation/m-p/104275#M9101</guid>
      <dc:creator>nzhou</dc:creator>
      <dc:date>2012-12-20T13:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Save Logistic regression results: question on by _impulation_;</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Save-Logistic-regression-results-question-on-by-impulation/m-p/104276#M9102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can always use ODS Output to select the output tables as data sets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ods output OddsRatios=OddsRatios;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc logistic data=outmi outest=outreg covout ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; model Oxygen= RunTime RunPulse;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; by _Imputation_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see the available output tables produced by ODS, put ODS TRACE ON; ahead of your PROC LOGISITIC step.&amp;nbsp; The tables names will appear in the log:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Output Added:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Name:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OddsRatios&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Label:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Odds Ratios&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Template:&amp;nbsp;&amp;nbsp; Stat.Logistic.OddsRatios&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Path:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Logistic.ByGroup5.OddsRatios&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 14:24:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Save-Logistic-regression-results-question-on-by-impulation/m-p/104276#M9102</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2012-12-20T14:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Save Logistic regression results: question on by _impulation_;</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Save-Logistic-regression-results-question-on-by-impulation/m-p/104277#M9103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been testing ODS this morning and a small mysterious mistake takes me a lot of time, though I thought it should not be the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The testing code is as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods output "Parameter Estimates"=parest;&lt;/P&gt;&lt;P&gt;proc reg data=hsb25 noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model write = female math;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;ods output close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=parest;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the NOPRINT option inside the PROC REG, any names other than PAREST will not generate the output data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I found the following from SAS user guide :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Many SAS procedures support a NOPRINT option that you can use when you want to create an output data set but without displaying any output....However, if you specify the NOPRINT option, the procedure might not send any output to ODS. In most procedures that support a NOPRINT option, &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;NOPRINT means no ODS&lt;/STRONG&gt;&lt;/SPAN&gt; "&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 15:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Save-Logistic-regression-results-question-on-by-impulation/m-p/104277#M9103</guid>
      <dc:creator>nzhou</dc:creator>
      <dc:date>2012-12-20T15:53:01Z</dc:date>
    </item>
  </channel>
</rss>

