PROC SQL; CREATE TABLE WORK."Details" AS SELECT t1.'Facility Name'n, t2.LOS, t2.Admits, /* Avg LOS */ (t2.LOS/t2.Admits) LABEL="Avg LOS" AS 'Avg LOS'n, t1.Charged, t1.Allowed, /* % of Discount */ ((t1.Charged-t1.Allowed)/t1.Charged) LABEL="% of Discount" AS '% of Discount'n, t1.Paid, /* % of Total Inpt */ (t1.Paid/SUM(t1.Paid)) LABEL="% of Total Inpt" AS '% of Total Inpt'n, /* Allowed/Day */ (t1.Allowed/t2.LOS) LABEL="Allowed/Day" AS 'Allowed/Day'n GROUP BY t1.'Facility Name'n, t2.LOS, t2.Admits, (CALCULATED 'Avg LOS'n), t1.Charged, t1.Allowed, (CALCULATED '% of Discount'n), t1.Paid, (CALCULATED 'Allowed/Day'n); QUIT;
... View more