Code Monkey home page Code Monkey logo

Comments (4)

zross avatar zross commented on September 24, 2024

@Court78 in the old app there is a note that Mozambique has five answers while the rest of the countries have integers (see below). But if you filter to Mozambique you get plenty of integer answers.

For all other countries it shows a proportion bar plot with no facets. For Mozambique, I get an error in the old app but based on the code it looks like it's supposed to show a set of facets ("Agree", etc).

Should I spend time on this one?

#**40_reserve_boundaries_aware**: Integer 0-10 in last HHS verison, but as factor (5 levels) for Mozambique 
 hhs_data %>% 
    dplyr::filter(iso3 == "MOZ") %>% 
    dplyr::count(`40_reserve_boundaries_aware`) %>% 
    data.frame()

   X40_reserve_boundaries_aware    n
1                             0    5
2                            10  172
3                             2    4
4                             3    7
5                             4    3
6                             5   59
7                             6   22
8                             7   13
9                             8   45
10                            9   19
11                        Agree  318
12                     Disagree   16
13                      Neither   75
14                   No reserve  206
15               Strongly agree   28
16            Strongly disagree   16
17                         <NA> 1246

from hhs_dashboard.

Court78 avatar Court78 commented on September 24, 2024

@zross We've assigned numeric values to the factors. Agree = 7, Disagree =3, Neither = 5, No reserve = blank, Strongly agree = 10, Strongly disagree = 1

I added this to the meta data as well

Let me know if that makes sense

from hhs_dashboard.

zross avatar zross commented on September 24, 2024

That makes sense but I'd need to know how to deal with 0 and the in-between numbers. For example, how do I code 4?

Below is how I have it, but let me know if you want it changed.

          "Strongly disagree" = 0,
          "Strongly disagree" = 1,
          "Strongly disagree" = 2,
          "Disagree" = 3,
          "Disagree" = 4,
          "Neither" = 5,
          "Agree" = 6,
          "Agree" = 7,
          "Strongly agree" = 8,
          "Strongly agree" = 9,
          "Strongly agree" = 10

from hhs_dashboard.

zross avatar zross commented on September 24, 2024

FYI, for Mozambique he is using a different plot from other countries. I will leave this for now. If you want to change eventually we can open a new issue (it will be confusing to users, I'm assuming, that there are different plots in this instance).

image

image

from hhs_dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.