Is there a way to compute a mean from a statistic other than the 'Total' N for a particular cross-tab group.
Ex. I'm looking at DRG by year and getting a sum for Total discharges, total days, income, margin, etc.
I'd like to get income and margin by day as well as by discharge. Thanks.
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.:
drg*drgdesc days all,
Note that it's inexpensive to code multiple TABLE statements in a single TABULATE step, because TABULATE does the input data processing only once.