-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to improve some corner cases when checking convergence
Two main changes: 1. If SSR is very close to zero, it gets edited to zero. Otherwise, on cases with perfect or near perfect collinearity, we might fail to converge as we end up in a case where SSR / PreviouSSR = 0 / 0 (or close to it) 2. Convergence should be invariant to rescaling of the weights. For instance, if we use pw=weightvar we should get the same result than if we use pw=1000*weightvar. However, because convergence is based on the weighted SSR, this is not the case. This commit fixes the cases with weights below 1, so setting weights based of pop in thousands will not give less accurate results than using pop in units. However, we didn't do the other case (where making all weights larger improves the accuracy)
- Loading branch information
1 parent
9dbf176
commit e86ebdd
Showing
4 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
*! version 4.4.12 10nov2017 | ||
*! version 4.4.13 31jan2018 | ||
|
||
program reghdfe, eclass | ||
* Intercept old+version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters