-
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
Cumulative imputation links are incorrect for FIC #22
Comments
By using this condition instead of
fixed the issue for cummulative links , it returns the correct cumulative link. But still the imputed value afterwards is wrong. |
When calculating the FIC the
|
monthly-business-survey-results/src/apply_imputation_link.py Lines 55 to 88 in d2e8a38
The marker values of the above must match (case sensitive) these: monthly-business-survey-results/src/imputation_flags.py Lines 120 to 125 in d2e8a38
|
The
imputation_group
column is created by looking for changes in three columns:missing_value
which isTrue
orFalse
depending on a return or non-returngroup
reference
This works for most cases, but not for FIC.
The
imputation_group
column should look atimputation_marker
for changes instead ofmissing_value
. There is some pre-processing needed because we look for changes in numerical columns, not categorical. One solution could be to create a new column (e.g.mapped_marker
) for mapping of markers to numbers, e.g.mapping = {"r": 1, "c": 2, "fir": 3, "bir": 4, "fic": 5}
(exact numbers doesn't matter as long as they're unique), then the condition would be(dataframe["mapped_marker"].diff(time_difference) != 0)
.This condition would replace the following condition:
monthly-business-survey-results/src/cumulative_imputation_links.py
Line 49 in d2e8a38
The text was updated successfully, but these errors were encountered: