<?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: Changing summary statistics output into input in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Changing-summary-statistics-output-into-input/m-p/3144#M259</link>
    <description>You have to create output-datasets from your summary statistics. How to actually do it depends on which proc you use, but in general there are two methods used by SAS:&lt;BR /&gt;
&lt;BR /&gt;
1) the output statement&lt;BR /&gt;
proc means data = DSN noprint;&lt;BR /&gt;
  var Var1;&lt;BR /&gt;
  output out = DSN_out &lt;I&gt;statistic-keyword&lt;/I&gt;= ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
2) the out-option&lt;BR /&gt;
proc freq data = DSN noprint;&lt;BR /&gt;
  tables Var1 / out = DSN_out;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
See SAS documentation for the proc you are going to use / using.</description>
    <pubDate>Thu, 07 Jun 2007 13:10:05 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-06-07T13:10:05Z</dc:date>
    <item>
      <title>Changing summary statistics output into input</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Changing-summary-statistics-output-into-input/m-p/3143#M258</link>
      <description>I input my raw data and now I want to use my summary statistics as my new input, so I can further analyze it.  How do I do this?</description>
      <pubDate>Fri, 18 May 2007 17:20:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Changing-summary-statistics-output-into-input/m-p/3143#M258</guid>
      <dc:creator>zbarnard</dc:creator>
      <dc:date>2007-05-18T17:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Changing summary statistics output into input</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Changing-summary-statistics-output-into-input/m-p/3144#M259</link>
      <description>You have to create output-datasets from your summary statistics. How to actually do it depends on which proc you use, but in general there are two methods used by SAS:&lt;BR /&gt;
&lt;BR /&gt;
1) the output statement&lt;BR /&gt;
proc means data = DSN noprint;&lt;BR /&gt;
  var Var1;&lt;BR /&gt;
  output out = DSN_out &lt;I&gt;statistic-keyword&lt;/I&gt;= ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
2) the out-option&lt;BR /&gt;
proc freq data = DSN noprint;&lt;BR /&gt;
  tables Var1 / out = DSN_out;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
See SAS documentation for the proc you are going to use / using.</description>
      <pubDate>Thu, 07 Jun 2007 13:10:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Changing-summary-statistics-output-into-input/m-p/3144#M259</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-06-07T13:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Changing summary statistics output into input</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Changing-summary-statistics-output-into-input/m-p/3145#M260</link>
      <description>Hi!&lt;BR /&gt;
  There is a third method:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods output summary=work.msum;&lt;BR /&gt;
proc means data=sashelp.shoes min mean max;&lt;BR /&gt;
var sales;&lt;BR /&gt;
class region;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
ODS OUTPUT allows you to capture any ODS output object into a SAS dataset. Most SAS procedures have output objects and you are able to detect the name of the output objects produced by a procedure by using the ODS TRACE statement:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ODS TRACE ON /label;&lt;BR /&gt;
proc means data=sashelp.shoes min mean max;&lt;BR /&gt;
var sales;&lt;BR /&gt;
class region;&lt;BR /&gt;
run;&lt;BR /&gt;
ODS TRACE OFF;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
If you examine the ODS TRACE output in the SAS log, you will see that the name of the output object produced by PROC MEANS is "Summary". The ODS OUTPUT destination is very useful if your item of interest is not output by the output methods shown above OR if your procedure of interest does not support an output or out= method.&lt;BR /&gt;
 &lt;BR /&gt;
Some SAS procedures produce only 1 output object, other SAS procedures produce different output objects based on procedure options and/or BY or CLASS processing or because the procedure itself (like PROC UNIVARIATE) produces multiple output objects in a single run.&lt;BR /&gt;
 &lt;BR /&gt;
Good luck!&lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 07 Jun 2007 14:27:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Changing-summary-statistics-output-into-input/m-p/3145#M260</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-06-07T14:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Changing summary statistics output into input</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Changing-summary-statistics-output-into-input/m-p/3146#M261</link>
      <description>In your book of the 50 most important things to remember about SAS that you might not often use, this ranks in the first few pages.&lt;BR /&gt;
&lt;BR /&gt;
Cynthia showed me this in a class a few years ago, and it has been a constant companion, getting me out of trouble with a number of required result sets.&lt;BR /&gt;
&lt;BR /&gt;
Unlike Cynthia, this doesn't sit at the front of my memory like basic Proc and Data steps, so I highlighted it in my little black book and am grateful every time I have to refresh my memory.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Sat, 23 Jun 2007 11:05:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Changing-summary-statistics-output-into-input/m-p/3146#M261</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-06-23T11:05:41Z</dc:date>
    </item>
  </channel>
</rss>

