The script begins by creating a data table named 'a' containing the raw p-values. Each observation corresponds to a statistical test identified by a 'Test' variable. Then, the PROC MULTTEST procedure is called with this table as input (option `inpvalues=a`). It calculates and displays the adjusted p-values according to three different requested methods: Holm, Hochberg, and FDR. This is a typical example of managing the multiple comparisons problem in statistics.
Data Analysis
Type : INTERNAL_CREATION
The data (raw p-values) are directly integrated into the code via a DATALINES statement, creating table 'a'.
1 Code Block
DATA STEP Data
Explanation : This DATA STEP block creates the 'a' work table. It reads the data integrated into the code via `datalines`. Each line contains a test identifier (Test) and the associated raw p-value (Raw_P).
Explanation : This statistical procedure takes as input table 'a' containing the p-values. It applies several correction methods for multiple tests: Holm (holm), Hochberg (hoc), and False Discovery Rate (fdr) control. The results with adjusted p-values are displayed in the standard output.
Copied!
proc multtest inpvalues=a holm hoc fdr;
run;
1
PROC MULTTEST inpvalues=a holm hoc fdr;
2
RUN;
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.
Copyright Info : SAS SAMPLE LIBRARY. REF: SAS/STAT User's Guide, PROC MULTTEST chapter
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.