BookmarkSubscribeRSS Feed
L_L
Calcite | Level 5 L_L
Calcite | Level 5
Dear all,

I would like to improve the quality of a statistic report.
Actually, if I want to report differences among groups I proceed as follow (for example in case of quantitative variable first I produce a table with a descriptive analisys and second a proc anova or a non parametric test):


1) PROC TABULATE DATA=XX;

CLASS YY / missing ORDER=formatted descending;
var JJ;
classlev YY;
TABLE
YY=’Label ',
all='Total',
JJ='Mean'*(mean='Mean' StdDev='SD' min='Min' max='Max'
p25='' median='Median' p75='' N )/misstext='0.00';
RUN;


2) title "ANOVA";

PROC ANOVA DATA=XX;
CLASS YY;
MODEL JJ = YY;
MEANS YY / HOVTEST=LEVENE ;
RUN;

Do you have any idea to summarize the results in one table (for example the descriptive analisys together with the p-value)?

Thanks in advance for your input!
1 REPLY 1
SPR
Quartz | Level 8 SPR
Quartz | Level 8
Hello L&L,

I think that you need some output from ANOVA in the form of a dataset. It is very easy to achieve with ODS output tables like this:
[pre]
ODS output HOVFTest=HT;
proc anova data=sashelp.class;
class age;
model Height=age;
means age/hovtest=levene;
run;
[/pre]
The procedure creates a dataset HT containing p-value and other parameters of Levene's test. Then you can add/merge this dataset with descriptive statistics. The list of all available ODS tables for ANOVA you can find in DETAILS/ODS TABLE NAMES section of HELP for this procedure.
Sincerely,
SPR

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →

Health and Life Sciences Learning

 

Need courses to help you with SAS Life Sciences Analytics Framework, SAS Health Cohort Builder, or other topics? Check out the Health and Life Sciences learning path for all of the offerings.

LEARN MORE

Discussion stats
  • 1 reply
  • 1491 views
  • 0 likes
  • 2 in conversation