GithubHelp home page GithubHelp logo

chrishollandaise / spice-analysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8.69 MB

Statistical analysis on the relationship between spices and other variables using data from Dollar Street

License: GNU General Public License v3.0

R 60.17% Python 39.83%
statistics dollar-street spices analysis python r statistical-analysis spice-analysis

spice-analysis's Introduction

Spice Analysis

Collage of spices
Collage of family spices from Dollar Street. Photos by: Johan Eriksson, Lucy Forsyth, Isaiah Williams, Omar Hayana, Rosine Fidele, Joseph Ramirez, Raashi Saxena, and Alisa Sidorenko. Licensed under creative commons 4.0

Description

This is an accompanying repository for our paper that tried to answer the following statistical question: How Income & Location Impact the Number of Spices in a Household.

Technologies used for this analysis

  • Python 3.8.3
  • RStudio 1.3.1073

How to use

Before trying out our code, make sure to install some R dependencies: ggplot2 and RColorBrewer. For installation of our python dependencies, use terminal to cd into this folder, and use this command:

pip3 install -r requirements.txt

Sampling frame

Our sampling frame was created using code/appendix.py, which scraped family data from Dollar Street. It was last gathered on October 10, 2020. This frame has a total of 397 cases. Here is some information explaining the columns of this frame.

Variables Type Description
id Identifier A unique string of characters and integers.
name Identifier The family name.
income Numeric Income of family in dollars. Please check how these values were calculated by Dollar Street.
country Categorical The name of the country the family lives in.
continent Categorical The name of the continent the family lives in.
url Identifier The Dollar Street URL of the family.
slug Identifier A unique identifier found at the end of the family URL.
short_desc Identifier A short description about the family.

References

By using Dollar Street family data, it helped answer our question. Please check them out!

spice-analysis's People

Contributors

chrishollandaise avatar

Watchers

 avatar

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.