Dear all,

I want to remove the outlier above the yellow line. Is there any Stata command by which I can only remove the outlier from the Y variable on the basis of each X variable. For example, I want to remove the extreme value of Y when X is 1,2,3,......,27.

Thanks and kind regards,

ArifulArray