This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/***************************************** | |
Author unknown - that is a pity because this macro is the best since sliced bread! | |
Trim or winsorize macro | |
* byvar = none for no byvar; | |
* type = delete/winsor (delete will trim, winsor will winsorize; | |
*dsetin = dataset to winsorize/trim; | |
*dsetout = dataset to output with winsorized/trimmed values; | |
*byvar = subsetting variables to winsorize/trim on; |