ifwins is a prefix command that runs most any Stata command that does not modify the dataset in memory (e.g. generate, replace, etc.). ifwins will have 'if' subset the dataset before 'in' subsets the dataset. This is the opposite of what happens when both 'if' and 'in' are used in the same Stata command. If you want to run a Stata command on a certain number of observations when a certain condition exists, use ifwins as a prefix to the desired Stata command