Hi,
I am trying to winsorize (top and bottom 0.5%) the variables "cogs", "sales", "sga" by group: "year" and "q". My sample look like that:
year q cogs sales sga
1989 1 3.564 5.194 2.153
1989 2 3.072 4.384 2.067
1989 3 2.947 4.776 2.304
1989 4 3.09 4.913 2.392
1990 1 2.167 3.506 2.049
1990 2 1.919 3.153 1.749
1990 3 1.573 2.678 1.633
1989 1 81.661 108.635 12.481
1989 2 75.96599999999999 104.566 13.819
1989 3 84.405 112.278 13.622
1989 4 92.26900000000001 119.396 13.99
1990 1 86.875 116.092 13.817
1990 2 93.25700000000001 115.808 13.68
1990 3 91.708 117.82 14.768
1990 4 90.749 116.822 16.28
1991 1 83.364 107.339 13.804
1991 2 79.283 101.948 14.256
Thanks a lot for your help
I am trying to winsorize (top and bottom 0.5%) the variables "cogs", "sales", "sga" by group: "year" and "q". My sample look like that:
year q cogs sales sga
1989 1 3.564 5.194 2.153
1989 2 3.072 4.384 2.067
1989 3 2.947 4.776 2.304
1989 4 3.09 4.913 2.392
1990 1 2.167 3.506 2.049
1990 2 1.919 3.153 1.749
1990 3 1.573 2.678 1.633
1989 1 81.661 108.635 12.481
1989 2 75.96599999999999 104.566 13.819
1989 3 84.405 112.278 13.622
1989 4 92.26900000000001 119.396 13.99
1990 1 86.875 116.092 13.817
1990 2 93.25700000000001 115.808 13.68
1990 3 91.708 117.82 14.768
1990 4 90.749 116.822 16.28
1991 1 83.364 107.339 13.804
1991 2 79.283 101.948 14.256
Thanks a lot for your help
Comment