<?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 tabulate in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tabulate/m-p/1512#M678</link>
    <description>Is there a way to compute a mean from a statistic other than the 'Total' N for a particular cross-tab group.&lt;BR /&gt;
Ex.  I'm looking at DRG by year and getting a sum for Total discharges, total days,  income, margin, etc. &lt;BR /&gt;
I'd like to get income and margin by day as well as by discharge.  Thanks.</description>
    <pubDate>Thu, 05 Oct 2006 13:07:49 GMT</pubDate>
    <dc:creator>uabcms</dc:creator>
    <dc:date>2006-10-05T13:07:49Z</dc:date>
    <item>
      <title>tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tabulate/m-p/1512#M678</link>
      <description>Is there a way to compute a mean from a statistic other than the 'Total' N for a particular cross-tab group.&lt;BR /&gt;
Ex.  I'm looking at DRG by year and getting a sum for Total discharges, total days,  income, margin, etc. &lt;BR /&gt;
I'd like to get income and margin by day as well as by discharge.  Thanks.</description>
      <pubDate>Thu, 05 Oct 2006 13:07:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tabulate/m-p/1512#M678</guid>
      <dc:creator>uabcms</dc:creator>
      <dc:date>2006-10-05T13:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tabulate/m-p/1513#M679</link>
      <description>Could you show us your current TABULATE CLASS, VAR, and TABLE statements to give us a better idea of what you're currently doing?&lt;BR /&gt;
&lt;BR /&gt;
 -- David Kelley, SAS</description>
      <pubDate>Thu, 05 Oct 2006 19:11:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tabulate/m-p/1513#M679</guid>
      <dc:creator>David_SAS</dc:creator>
      <dc:date>2006-10-05T19:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tabulate/m-p/1514#M680</link>
      <description>proc tabulate missing data=final;&lt;BR /&gt;
    where fclass in ('BC','Medicare','Medicaid','Comm');               &lt;BR /&gt;
	class fyr  drgn drgdesc fclass;&lt;BR /&gt;
    var pats margin los nrev netinc tcost;&lt;BR /&gt;
	 table drgn='DRG'*drgdesc=' ' all='Total',fclass*fyr*(pats='D/C'*sum=' '*f=5. los='Days'*sum=' '*f=6.&lt;BR /&gt;
                      los='Avg LOS'*mean=' '*F=3.1 &lt;BR /&gt;
                      &lt;B&gt;margin='Contrib Margin'*(sum=' ' mean=' '&lt;/B&gt;)*f=10. nrev='Net Rev'*sum=' '*f=10. &lt;BR /&gt;
                      netinc='Net Inc'*sum=' '*f=10. tcost='Total Cost'*sum=' '*f=10.);&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
code for Margin - in bold- gives me total margin and margin by discharge(D/C) but I'd also like to get margin by Days.&lt;BR /&gt;
Thanks.</description>
      <pubDate>Fri, 06 Oct 2006 20:40:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tabulate/m-p/1514#M680</guid>
      <dc:creator>uabcms</dc:creator>
      <dc:date>2006-10-06T20:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tabulate/m-p/1515#M681</link>
      <description>If you want margin and income (only) by days (only), you'll need another TABLE statement.  If it's meaningful to cross everything in your TABLE statement column dimension with days, you can simply add days to your row dimension, e.g.:&lt;BR /&gt;
&lt;BR /&gt;
 drg*drgdesc days all,&lt;BR /&gt;
&lt;BR /&gt;
Note that it's inexpensive to code multiple TABLE statements in a single TABULATE step, because TABULATE does the input data processing only once.&lt;BR /&gt;
&lt;BR /&gt;
 -- David Kelley, SAS</description>
      <pubDate>Mon, 09 Oct 2006 15:04:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tabulate/m-p/1515#M681</guid>
      <dc:creator>David_SAS</dc:creator>
      <dc:date>2006-10-09T15:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tabulate/m-p/1516#M682</link>
      <description>My goal is to get a 'By day' AND a 'By discharge' value in the same table.&lt;BR /&gt;
So for each row, I want Discharges , days, ALOS, margin, margin per day and margin per discharge.</description>
      <pubDate>Mon, 09 Oct 2006 16:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tabulate/m-p/1516#M682</guid>
      <dc:creator>uabcms</dc:creator>
      <dc:date>2006-10-09T16:56:40Z</dc:date>
    </item>
  </channel>
</rss>

