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

Proportion of meat consumption #46

Open
rfrelat opened this issue Aug 30, 2022 · 1 comment
Open

Proportion of meat consumption #46

rfrelat opened this issue Aug 30, 2022 · 1 comment

Comments

@rfrelat
Copy link
Contributor

rfrelat commented Aug 30, 2022

The meat consumption is mostly 0, even if household have reported consumption of meat. Not sure where the issue comes from, but it seems that the conversion from proportion to numeric is wrong. For instance:

> table(tab$meat_consumed_props_numeric_1, tab$meat_consumed_amount_1, useNA="ifany")`
       all  half little  most  none underhalf  <NA>
0      115   418    191   146     4       116  5733
0.5      0     3      0     0     0         0     0
0.7      0     0      0     2     0         0     0
0.9    206     0      0     0     0         0     0
1        0     0      0     0     0         0    24
<NA>     0     0      0     0     0         0 28755

Not sure if it is because 'meat_consumed_props_numeric_1' is the only category with prop'S' instead of prop (e.g. milk_consumed_prop_numeric_1, eggs_consumed_prop_numeric_1, ...) but it seems to be correctly written in the function meat_uses().
If that help, currently the only projects with some meat_consumed_props_numeric>0 are:
"bf_cw2_2015", "bf_sil_2016", "gh_ta2_2017", "in_gef_2019", "kh_csi_2020", "ml_cw1_2015", "ni_cfn_2018".

@l-gorman
Copy link
Collaborator

l-gorman commented Sep 1, 2022

Very strange I can't think of why this would be! I will take a look into it soon

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