Lets say I was to run
Sex takes only 0,1 or missing value. And I have several observations where variable1 and/or variable2 and/or Sex was missing.
I know that winsor2 will divide the dataset into two(or is it three?) parts depending on the value of Sex being 0 or 1 (or missing as well?) And then variable1 will be winsorized for the 2/3 dataset so will variable2 be. But will the missing value within variable1 and variable 2 be taken as 0 or will those observations be completely excluded when winsorize2 looks at the distribution?
I want a way such that the winsorize2 command can exclude the observations where there is a missing value for the variable in by(). Can someone advice?
Code:
winsor2 variable1 variable2, cut(0 98) by(Sex)
I know that winsor2 will divide the dataset into two(or is it three?) parts depending on the value of Sex being 0 or 1 (or missing as well?) And then variable1 will be winsorized for the 2/3 dataset so will variable2 be. But will the missing value within variable1 and variable 2 be taken as 0 or will those observations be completely excluded when winsorize2 looks at the distribution?
I want a way such that the winsorize2 command can exclude the observations where there is a missing value for the variable in by(). Can someone advice?
Comment