Git Product home page Git Product logo

Comments (5)

joshdelarosa1 avatar joshdelarosa1 commented on September 24, 2024

Cleaned up the parentheses

B15001_012E+B15001_013E+B15001_020E+B15001_021e+B15001_028e+B15001_029e+B15001_036E+B15001_037E+B15001_053E+B15001_054E+B15001_061E+B15001_062E+B15001_069E+B15001_070E+B15001_077E+B15001_078E/
(B15001_001E-(B15001_003E+B15001_044E))

Male and female over 25+ without HS / Total population - (male 18-24 pop + female 18-24 pop)

from dcaction.

charlesdguthrie avatar charlesdguthrie commented on September 24, 2024

This looks like it's still a ratio minus a value.

from dcaction.

joshdelarosa1 avatar joshdelarosa1 commented on September 24, 2024

To verify the formula I calculated the DC 25+ no HS degree rate. The city wide rate is 12.47%.

You can see my work here: https://drive.google.com/file/d/0B6e0RxBr5-9jTVNJdkNIQ0FpRUk/edit?usp=sharing

Either there is a bug in the API or the formula is not being translated or cross-walked correctly in the script.

Could you compare the script to the formula:

B15001_012E+B15001_013E+B15001_020E+B15001_021e+B15001_028e+B15001_029e+B15001_036E+B15001_037E+B15001_053E+B15001_054E+B15001_061E+B15001_062E+B15001_069E+B15001_070E+B15001_077E+B15001_078E/
(B15001_001E-(B15001_003E+B15001_044E))

or my spreadsheet ( https://drive.google.com/file/d/0B6e0RxBr5-9jTVNJdkNIQ0FpRUk/edit?usp=sharing)

If the value is still negative, please let me know.

from dcaction.

joshdelarosa1 avatar joshdelarosa1 commented on September 24, 2024

When checking the script, please start with the denominator. It should say (B15001_001E-(B15001_003E+B15001_044E))

Which is:25+ population= (total population - (male 18-24 population+female 18-24 population)).

All of the numerator values are positive. So if there is a negative in the numerator, there could be a bug in the Census API system.

from dcaction.

jotok avatar jotok commented on September 24, 2024

I've updated the script to use Josh D's formula from this comment thread.

from dcaction.

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.