Biostat Macro LibraryPercent Change%PctChange and %PctPrint reside in the departments SAS Macro Library and are enabled with the following SAS statements: L For safety we like to run Chi-Square tests on the number of subjects that have a 20% change from baseline. The procedure %PctChange does this for a list of outcome measures. Three batteries of Chi-square test may be done: All combinations(A-B,A-C,A-D,B-C,B-D,C-D), Dosage response(A-B,A-C,A-D), or TwoByTwo design(AB-CD,AC-BD,AD-BC). If you would like to check for other %changes besides 20, you can define a macro variable "percents" as a list of percentages to use. There must be one percentage for each outcome measure in the procedure call: %Let percents=10 10 5 5; %PctPrint creates a listing of subjects that have a 20% change from baseline on the listed outcome measures. This procedure is very helpful in identifying subjects with radical changes over time. Syntax: Example: The default number of significant digits, two, can be changed by defining a macro variable named “Digits” before calling the procedure: %Let Digits=1; Output: |
||