Hello, I've a panel data with this structure.
list id newdate pchg qgarp pais industria size if inrange(id, 1, 5), noobs
+-------------------------------------------------------------------------------------------------+
id newdate pchg qgarp pais industria size
-------------------------------------------------------------------------------------------------
AIM:ABC 28mar2014 4.09206 .650909 United Kingdom Healthcare Small_cap
AIM:ABC 11jun2014 -1.2285 .641818 United Kingdom Healthcare Small_cap
AIM:ABC 26sep2014 13.5294 .629091 United Kingdom Healthcare Small_cap
AIM:ABC 11dec2014 .277778 .590909 United Kingdom Healthcare Small_cap
AIM:ASC 28mar2014 -35.6688 .718182 United Kingdom Consumer Discretionary Mid_cap
-------------------------------------------------------------------------------------------------
AIM:ASC 11jun2014 -35.6436 .556364 United Kingdom Consumer Discretionary Mid_cap
AIM:ASC 26sep2014 27.9327 .543636 United Kingdom Consumer Discretionary Mid_cap
AIM:ASC 11dec2014 -.601278 .530909 United Kingdom Consumer Discretionary Mid_cap
AIM:CLIN 28mar2014 -17.2727 .778182 United Kingdom Healthcare Small_cap
AIM:CLIN 11jun2014 4.22207 .705455 United Kingdom Healthcare Small_cap
-------------------------------------------------------------------------------------------------
AIM:CLIN 26sep2014 15.7503 .68 United Kingdom Healthcare Small_cap
AIM:CLIN 11dec2014 -3.85356 .641818 United Kingdom Healthcare Small_cap
AIM:DTG 28mar2014 -5.58028 .872727 United Kingdom Industrials Small_cap
AIM:DTG 11jun2014 -18.2639 .821818 United Kingdom Industrials Small_cap
AIM:DTG 26sep2014 30.591 .694545 United Kingdom Industrials Small_cap
-------------------------------------------------------------------------------------------------
AIM:DTG 11dec2014 .169381 .809091 United Kingdom Industrials Small_cap
AIM:NANO 28mar2014 .825472 .467273 United Kingdom Information Technology Micro_Cap
AIM:NANO 11jun2014 38.2456 .552727 United Kingdom Information Technology Micro_Cap
AIM:NANO 26sep2014 -17.7665 .378182 United Kingdom Information Technology Micro_Cap
AIM:NANO 11dec2014 -16.8724 .429091 United Kingdom Information Technology Micro_Cap
+-------------------------------------------------------------------------------------------------+
How can i create quintiles by date with xtile function??? For example i want to create a quintile at 28/03/2014???? How can i need to write the command??
I´ll attach below the details of the panel data.
thks all.
xtdescribe
id: 1, 2, ..., 3767 n = 3767
newdate: 28mar2014, 11jun2014, ..., 11dec2014 T = 4
Delta(newdate) = 1 day
Span(newdate) = 259 periods
(id*newdate uniquely identifies each observation)
Distribution of T_i: min 5% 25% 50% 75% 95% max
4 4 4 4 4 4 4
Freq. Percent Cum. Pattern*
---------------------------+----------
3767 100.00 100.00 1111
---------------------------+----------
3767 100.00 XXXX
--------------------------------------
*Each column represents 75 periods.
list id newdate pchg qgarp pais industria size if inrange(id, 1, 5), noobs
+-------------------------------------------------------------------------------------------------+
id newdate pchg qgarp pais industria size
-------------------------------------------------------------------------------------------------
AIM:ABC 28mar2014 4.09206 .650909 United Kingdom Healthcare Small_cap
AIM:ABC 11jun2014 -1.2285 .641818 United Kingdom Healthcare Small_cap
AIM:ABC 26sep2014 13.5294 .629091 United Kingdom Healthcare Small_cap
AIM:ABC 11dec2014 .277778 .590909 United Kingdom Healthcare Small_cap
AIM:ASC 28mar2014 -35.6688 .718182 United Kingdom Consumer Discretionary Mid_cap
-------------------------------------------------------------------------------------------------
AIM:ASC 11jun2014 -35.6436 .556364 United Kingdom Consumer Discretionary Mid_cap
AIM:ASC 26sep2014 27.9327 .543636 United Kingdom Consumer Discretionary Mid_cap
AIM:ASC 11dec2014 -.601278 .530909 United Kingdom Consumer Discretionary Mid_cap
AIM:CLIN 28mar2014 -17.2727 .778182 United Kingdom Healthcare Small_cap
AIM:CLIN 11jun2014 4.22207 .705455 United Kingdom Healthcare Small_cap
-------------------------------------------------------------------------------------------------
AIM:CLIN 26sep2014 15.7503 .68 United Kingdom Healthcare Small_cap
AIM:CLIN 11dec2014 -3.85356 .641818 United Kingdom Healthcare Small_cap
AIM:DTG 28mar2014 -5.58028 .872727 United Kingdom Industrials Small_cap
AIM:DTG 11jun2014 -18.2639 .821818 United Kingdom Industrials Small_cap
AIM:DTG 26sep2014 30.591 .694545 United Kingdom Industrials Small_cap
-------------------------------------------------------------------------------------------------
AIM:DTG 11dec2014 .169381 .809091 United Kingdom Industrials Small_cap
AIM:NANO 28mar2014 .825472 .467273 United Kingdom Information Technology Micro_Cap
AIM:NANO 11jun2014 38.2456 .552727 United Kingdom Information Technology Micro_Cap
AIM:NANO 26sep2014 -17.7665 .378182 United Kingdom Information Technology Micro_Cap
AIM:NANO 11dec2014 -16.8724 .429091 United Kingdom Information Technology Micro_Cap
+-------------------------------------------------------------------------------------------------+
How can i create quintiles by date with xtile function??? For example i want to create a quintile at 28/03/2014???? How can i need to write the command??
I´ll attach below the details of the panel data.
thks all.
xtdescribe
id: 1, 2, ..., 3767 n = 3767
newdate: 28mar2014, 11jun2014, ..., 11dec2014 T = 4
Delta(newdate) = 1 day
Span(newdate) = 259 periods
(id*newdate uniquely identifies each observation)
Distribution of T_i: min 5% 25% 50% 75% 95% max
4 4 4 4 4 4 4
Freq. Percent Cum. Pattern*
---------------------------+----------
3767 100.00 100.00 1111
---------------------------+----------
3767 100.00 XXXX
--------------------------------------
*Each column represents 75 periods.
Comment