My current method for identifying outliers only works for highest and lowest value by the use of command:  sum age height weight

 – what about the second highest value which might be an outlier as well for these three variables? Could I  loop across all variables I could pull out the top/bottom five values for review?- what would be command for this?

I heard of 'foreach' command that can sort this. Any help please?

Similar questions and discussions