Strange... It works well on my data (the full dataset, I mean):
-
Login or Register
- Log in with
. reghdfe lconsum treatalt tp c.calmonth, absorb(location) vce(cluster location) (converged in 1 iterations) note: treatalt omitted because of collinearity note: tp omitted because of collinearity note: calmonth omitted because of collinearity HDFE Linear regression Number of obs = 10 Absorbing 1 HDFE group F( 0, 0) = 0.00 Statistics robust to heteroskedasticity Prob > F = . R-squared = 0.0000 Adj R-squared = 0.0000 Within R-sq. = 0.0000 Number of clusters (location) = 1 Root MSE = 0.1402 (Std. Err. adjusted for 1 clusters in location) ------------------------------------------------------------------------------ | Robust lconsum | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- treatalt | 0 (omitted) tp | 0 (omitted) calmonth | 0 (omitted) ------------------------------------------------------------------------------ Absorbed degrees of freedom: ---------------------------------------------------------------+ Absorbed FE | Num. Coefs. = Categories - Redundant | -------------+-------------------------------------------------| location | 0 1 1 * | ---------------------------------------------------------------+ * = fixed effect nested within cluster; treated as redundant for DoF computation .
* Example generated by -dataex-. To install: ssc install dataex clear input long location str9 date float(year month day calday calmonth lconsum) byte randomgrp float(tp treatalt) 500001 "01-JAN-17" 2017 1 1 20820 684 4.322219 0 0 0 500001 "02-JAN-17" 2017 1 2 20821 684 4.386176 0 0 0 500001 "03-JAN-17" 2017 1 3 20822 684 4.4473995 0 0 0 500001 "04-JAN-17" 2017 1 4 20823 684 4.4338075 0 0 0 500001 "05-JAN-17" 2017 1 5 20824 684 4.3310753 0 0 0 500001 "06-JAN-17" 2017 1 6 20825 684 3.974716 0 0 0 500001 "07-JAN-17" 2017 1 7 20826 684 4.2140517 0 0 0 500001 "08-JAN-17" 2017 1 8 20827 684 4.4054755 0 0 0 500001 "09-JAN-17" 2017 1 9 20828 684 4.2358565 0 0 0 500001 "10-JAN-17" 2017 1 10 20829 684 4.3244976 0 0 0 end format %td calday format %tm calmonth
. reghdfe lconsum i.randomgr##i.tp c.calmonth, absorb(location) vce(cluster location) (converged in 1 iterations) note: 0.randomgrp omitted because of collinearity note: 0.tp omitted because of collinearity note: 0.randomgrp#0.tp omitted because of collinearity note: calmonth omitted because of collinearity HDFE Linear regression Number of obs = 10 Absorbing 1 HDFE group F( 0, 0) = 0.00 Statistics robust to heteroskedasticity Prob > F = . R-squared = -0.0000 Adj R-squared = -0.0000 Within R-sq. = 0.0000 Number of clusters (location) = 1 Root MSE = 0.1386 (Std. Err. adjusted for 1 clusters in location) ------------------------------------------------------------------------------ | Robust lconsum | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- 0.randomgrp | 0 (empty) 0.tp | 0 (empty) | randomgrp#tp | 0 0 | 0 (empty) | calmonth | 0 (omitted) ------------------------------------------------------------------------------ Absorbed degrees of freedom: ---------------------------------------------------------------+ Absorbed FE | Num. Coefs. = Categories - Redundant | -------------+-------------------------------------------------| location | 0 1 1 * | ---------------------------------------------------------------+ * = fixed effect nested within cluster; treated as redundant for DoF computation .
* Example generated by -dataex-. To install: ssc install dataex clear input long location str9 date float(year month day calday calmonth lconsum) byte randomgrp float tp 500001 "01-JAN-17" 2017 1 1 20820 684 4.331219 0 0 500001 "02-JAN-17" 2017 1 2 20821 684 4.395176 0 0 500001 "03-JAN-17" 2017 1 3 20822 684 4.4484995 0 0 500001 "04-JAN-17" 2017 1 4 20823 684 4.4349075 0 0 500001 "05-JAN-17" 2017 1 5 20824 684 4.3300653 0 0 500001 "06-JAN-17" 2017 1 6 20825 684 3.984616 0 0 500001 "07-JAN-17" 2017 1 7 20826 684 4.2140527 0 0 500001 "08-JAN-17" 2017 1 8 20827 684 4.4064745 0 0 500001 "09-JAN-17" 2017 1 9 20828 684 4.2368575 0 0 500001 "10-JAN-17" 2017 1 10 20829 684 4.3243986 0 0 end format %td calday format %tm calmonth
lowess lconsum heatscore if calday < td(02feb2018)
Leave a comment: