Closed ElliottMess closed 2 years ago
Linked to this, when new values are being calculated in calculate_hep_components
, the type is returned as 'projected' when one or more of the underlying data has a 'projected' type. See measles calculations for BRA in 2020, where measles is reported (as of time of writing), but surviving_infants (denominator) is projected.
When calling transform_hep_data on a dataset with missing values for some years, transform_hep_data infills the data. However, it infills the data with the type projected, even when the data is in the past. It should be 'infilled' instead, marking the source as DDI.
After investigation, the problem was misidentified: this happens only on the campaign indicators when the last reported value is carried to the next years. It is then labelled as 'projected', even if it is in the past. This seems coherent, but maybe 'imputed' would be more appropriate?
Linked to this, when new values are being calculated in
calculate_hep_components
, the type is returned as 'projected' when one or more of the underlying data has a 'projected' type. See measles calculations for BRA in 2020, where measles is reported (as of time of writing), but surviving_infants (denominator) is projected.
surviving_infants was removed from the indicators providing types in commit 5d97257
This branch returns imputed instead of projected for infilled campaign data.
This apparently was an expected behaviour.
When calling transform_hep_data on a dataset with missing values for some years, transform_hep_data infills the data. However, it infills the data with the type projected, even when the data is in the past. It should be 'infilled' instead, marking the source as DDI.