|Type of Tool||SAS Macro|
|Description||This Macro computes the percent change from baseline of a list of variables and counts the number of subjects that exceed X percent. You may specify X. This macro then returns a dataset with the Ns, percents and Chi-square P-values between groups.|
|Classification Graph Type|
|Macro Parameters|| dataset: Dataset to use.|
who: Subject ID.
group: Treatment group.
percent: %Change to count. i.e. 20
visit: Time variable: visit, week, month...
baseline: Baseline visit.
varlist: List of variables to check for change.
dataout: Output dataset.
|R-Code - Attachment|
|SAS-Code - Attachment||https://ctspedia.org/wiki/pub/CTSpedia/PercentChange/PctChange.sas|
|Stata-Code - Attachment|
|Other Code - Attachment|
|Called Data Manipulation|
|Called Checking Macro|
|Example Code||SAS Example Code|
|SAS_Example_Code||%PctChange(mydata,id,treat,20,visit,0,systolic diastolic pulse weight,changes);|
|Special Features Attached|
|Special Features Text|
|Notes1-Legend||Section with calls to needed macros|
|Notes1|| Filename incl URL "https://ctspedia.org/wiki/pub/CTSpedia/PercentChange/PctChange.sas";|
|Notes2-Legend||Macro call with fully specified parameters|
|Notes3-Legend||Section with definitions of global macro parameters|
|Notes4-Legend||Section with definitions of local macro variables|
|Stat Tools Disclaimer||This SAS macro is developed by Mr. Watts in the Department of Biostatistics and Computational Biology at the University of Rochester under the auspice of the CTSA BERD with the intent to facilitate data analyses and reporting in clinical and related research. It is copyrighted by Mr. Watts, July 2011 and distributed for free public access.|
|Discliamer||The views expressed within CTSpedia are those of the author and must not be taken to represent policy or guidance on the behalf of any organization or institution with which the author is affiliated.|
|Permission|| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT OLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.