The `mlmsumry` macro configures ODS outputs to capture model ANOVA tables and multivariate statistics. It executes `PROC GLM` with the provided parameters (classes, model, contrasts, repeated measures). Then, it processes the output tables (`_between_`, `_error_`) via DATA steps to consolidate results, calculate degrees of freedom, and format hypothesis types, before displaying the results.
Data Analysis
Type : EXTERNAL
The code expects an input dataset via the `data` macro parameter (default `_last_`). It does not create hardcoded data but manipulates temporary ODS tables generated by the procedure.
1 Code Block
PROC GLM
Explanation : Configuration of ODS destinations to capture statistical results and execution of the GLM (General Linear Model) procedure with specified model parameters.
Explanation : Processing of ODS results tables. Separates error sources and effects ('Between' vs 'Error'), calculates degrees of freedom (NumDF, DenDF), and restructures the table for the final report.
Copied!
data _between_ _error_;
set _between_(in=inb) ... ;
if Source = 'Error' then output _error_;
else do; ... output _between_; end;
run;
data _between_;
retain Source FValue NumDF DenDF ProbF;
if _n_=1 then set _error_(rename=(df=DenDF));
set _between_;
run;
1
DATA _between_ _error_;
2
SET _between_(in=inb) ... ;
3
IFSOURCE = 'Error'THENOUTPUT _error_;
4
ELSEDO; ... OUTPUT _between_; END;
5
RUN;
6
7
DATA _between_;
8
retain SOURCE FValue NumDF DenDF ProbF;
9
IF _n_=1THENSET _error_(rename=(df=DenDF));
10
SET _between_;
11
RUN;
3 Code Block
PROC PRINT
Explanation : Display of the consolidated statistics table if the multivariate tests option is enabled.
Copied!
proc print;
%end;
1
PROC PRINT;
2
%END;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
Related Documentation
Aucune documentation spécifique pour cette catégorie.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.