Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Winsorize by time and group


From   Gokhan Yilmaz <[email protected]>
To   [email protected]
Subject   st: Winsorize by time and group
Date   Tue, 29 Nov 2011 04:24:08 -0500

Dear All,

I have a time variable "t" that takes values between 1 to 12 for each
month and a group variable that is {0,1}. I want to winsorize my
return variable "ret" for each group in each month. Since "by" cannot
be combined with "winsor", can you suggest a syntax in this case? In
my statalist search i found the syntax  for winsorizing on one
dimension (every year) but couldn't find a case with two dimensions.

Thanks in advance for the help.

Gokhan
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index