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

LCU to PPP conversion issue with form id #66

Open
baokiddy opened this issue Jan 11, 2024 · 1 comment
Open

LCU to PPP conversion issue with form id #66

baokiddy opened this issue Jan 11, 2024 · 1 comment

Comments

@baokiddy
Copy link

Main Issue:

When using the RHoMIS package, I'm unable to get currency conversion factor when using correct form id. The code only seems to work when I use the form id mb6.

library(rhomis)

calculate_indicators_local(
  file_path="Pre_Processed_Data.csv",
  id_type = "string",
  proj_id = "tree-aid",
  form_id = "mb6",  # <- output is correct only when mb6 is used
  gender_categories = c("male_head", "female_head","male_adult", "female_adult","female_youth","male_youth")
)

Error Message:

When I change the form id, I get the following error:

5: In calculate_indicators(rhomis_data, units_and_conversions,  ... : 
Have not provided the ISO country codes for the survey. 
Check the country names, and check that they are converted

Actual Result:

Using form id mb6, I get the wrong form id, correct country code and correct currency conversion as shown below.
Screenshot 2024-01-11 at 15 08 54

Using form id gc6, I get the right form id, no country code and no currency conversion.

Expected Result:

Screenshot 2024-01-11 at 15 10 39
@l-gorman
Copy link
Collaborator

Hi there,

Sorry for the delay. Have you extracted the series of units tables as shown here. This function should generate a table which needs to be confirmed, and includes a conversion for country, (see here). Could you please try these steps and let me know if this fixes the issue?

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

No branches or pull requests

2 participants