-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change fo3 cleaning #21
Comments
The code seems to work as intended |
This is the code for the panel:
|
1 issue: Dfference ---------- fo3<fo3_old 5734 -1 -1 -1 2. issue: rowtotal | Freq. Percent Cum. Total 10,545,843 100.00 I will have to check test firms (the biggest ones) that we really want these corrections. |
Let's do this first for fo3, then for so3. Clearly the order matters here, as the patterns change when the holes are filled in. Something like do "fillin.do" fo3
replace so3 = 0 if fo3 == 1
replace do3 = 0 if fo3 == 1
do "fillin.do" so3
replace do3 = 0 if so3 == 1 |
Take 5 consecutive years of data. The following changes should be made. Other patterns remain the same.
11011
11111
01011
01111
11010
11110
00100
00000
10100
10000
00101
00001
Basically, change the middle to the 2 neighbors, if in the 4 neighbors they are a majority. Pseudocode, check before running.
The current code seems to only do this for
sum
i' == 4`, which is too strict.The text was updated successfully, but these errors were encountered: