Skip to content
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

Update Consumable availability (New OpenLMIS data) #1444

Draft
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

sakshimohan
Copy link
Collaborator

The previous version of consumable availability estimates were based on 2018 OpenLMIS data. This PR brings in 2021-2023 OpenLMIS data to update these estimates.

@sakshimohan sakshimohan marked this pull request as ready for review July 29, 2024 15:24
@sakshimohan sakshimohan marked this pull request as draft July 29, 2024 15:24
@sakshimohan
Copy link
Collaborator Author

sakshimohan commented Aug 15, 2024

The final result of this analysis was that we did not observe a significant rising or falling trend in consumable availability during the 5-year period.
Useful resource for mixed models for big data -https://m-clark.github.io/posts/2019-10-20-big-mixed-models/

I have produced an estimate of average annual % change in consumable availability between 2018 and 2023 based on this model through the following steps:

  1. Estimate a logistic regression model of consumable availability based on the data from 2018, 2021, 2022, and 2023 with random effects at the level of item. I had to drop facility-level random effects because of the time this was taking but again just as with the HHFA analysis, the variance between items is far greater than that between facilities so this is justifiable. The model doesn't converge but seems like a good fit based on the predictions (maybe this is OK?)
  2. Based on the model, predict availability for each item by year (all 6 years between 2018-2023), facility level, consumable category, is_vital.
  3. Calculate the % change in availability for each combination of characteristics between subsequent years.
  4. Take an average of these Annual % change values to get the Average annual % change in availability during the period 2018-2023.
  5. The attached .csv contains these estimates. See column - "Average annual % change (2018 to 2023)". Note that the values represent the proportional change, not %, i.e. they need to be multiplied by 100 to get percentage change.

predicted_availability_mixedeffects_model.csv

The figures below show the interaction between the facility/consumable characteristics and time. There is evidently a lot of noise. We need someone else to clean and analyse the data in more detail to understand what's really going on.

predicted_values_by_programmatic_category
predicted_values_by_eml_category
predicted_values_by_fac_level

@sakshimohan
Copy link
Collaborator Author

sakshimohan commented Aug 15, 2024

These are descriptive figures of consumable availability over time -

mean_time_trend_by_category_FullData
mean_time_trend_by_fac_level_FullData
mean_time_trend_by_is_vital_FullData

Prioritised consumables are those which are reported as used in the TLO model, as suggested in the .csv file generated on 7 August 2014 below.
mean_time_trend_by_priority_category_FullData

3_Table_Of_Frequency_Consumables_Requested.csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant