Reputation: 5
I created an Anova and want to save the mean, standard deviation, F-statistics and the p-Value in a new data set. This is my current code:
ODS OUTPUT means=anova;
PROC ANOVA DATA= multiple_sclerosis;
CLASS ms_form;
MODEL eq5d = ms_form;
MEANS ms_form;
RUN;
quit;
ods output close;
Thanks for any help!
Upvotes: 0
Views: 853
Reputation: 191
You have to add "outstat=" statement. Try this:
PROC ANOVA DATA= multiple_sclerosis;
CLASS ms_form;
MODEL eq5d = ms_form;
MEANS ms_form;
OUTSTAT = <output library>.<output table>; /* <--- */
RUN;
Upvotes: 0
Reputation: 63424
You can add ODS TRACE ON;
before your code to see the names of the tables that it outputs. In this case, I think you want the ModelANOVA
table (the second table in the Output/Results window).
ODS OUTPUT means=anova modelAnova=model;
PROC ANOVA DATA= sashelp.cars;
CLASS cylinders;
MODEL mpg_highway=cylinders;
MEANS cylinders;
RUN;
quit;
ods output close;
Upvotes: 1