Giter VIP home page Giter VIP logo
Code for Sacramento photo

code4sac Goto Github PK

repos: 121.0 gists: 0.0

Name: Code for Sacramento

Type: Organization

Bio: We're civic-minded volunteers who contribute our skills toward using the web as a platform for local government and community service.

Twitter: code4sac

Location: United States of America

Blog: http://codeforsacramento.org

Sacramento Homeless Services Dashboard

A project to provide an interactive dashboard with data from Sacramento County's Homeless Management Information System

Readme contents:

  • Context
  • Tools Used
  • Assumptions Used to Produce Charts
  • Execution Instructions

top_of_dash

Context

This dashboard was developed to help the community visualize the volume of homeless-related services, how many people find permanent housing through these programs, and the demographics of those who use the services. The data comes from Sacramento's Homeless Management Information System (HMIS), which is used by local homeless service providers within Sacramento County to coordinate care, manage their operations, and better serve those in need of homeless services (referred to in this dashboard as clients). As of early 2020, the most recent public data is through August 2019. The dashboard includes interactive charts that allows users to explore homeless services program volumes, outcomes, and participant demographics by year and program type. An explanation of assumptions made for chart plotting is included at the bottom of this readme.

mid_dash

Tools Used

  • Initial ETL, exploration, and database build was via a Python Jupyter Notebook.
  • Python app now used to clean and load data into database.
  • Python modules used include SQLAlchemy, Numpy, and Pandas.
  • Development and production database is PostgreSQL.
  • A flask API serves the data from the database.
  • Web page design uses HTML5, CSS3, and JavaScript, including Highcarts library.
  • Web page hosted on Heroku app.

bottom_dash

Assumptions Used for Producing Charts

Data included for those receiving homeless services from January 1, 2015 through August 31, 2019

  • While there is some data in the dataset after August 2019, it appears to be incomplete and is not included.

Volume/Program Participation

  • Total distinct clients and total program enrollments differ because of clients enrolling in multiple programs during a given time period. Distinct clients are meant to represent how many individuals receive services per year, and total program enrollment is meant to capture the overall load on the homeless services system. Total clients/ enrollments count clients who enrolled a program either during or before the given year and exited any time during or after the given year. For example, both a client who enrolled on January 1st, 2016 and exited in February 1st, 2016, and a client who enrolled in July 1st, 2015 and exited July 1st, 2017 would be counted in "Total Clients/Enrollments" for 2016; however, the latter client would be counted as active in 2015, 2016 and 2017.
  • New clients/enrollments and clients/enrollments ended are straightforward counts of activity within the time period.

Outcomes/Program enrollees with permanent housing upon program exit

  • For those who exited a program in the period, percent is calculated as the number of clients who exited to permanent housing divided by the total number of exits. Permanent housing is defined as Category 1 as defined in “Variables included in County Data” spreadsheet’s “Exit Destination” worksheet, and includes rapid rehousing and permanent supportive housing.
  • Clients are only counted once. If a client happens to have an exit to permanent housing and an exit in the same period to something other than permanent housing, they are counted as an exit to permanent housing.

Outcomes/Average time to permanent housing

  • Time is calculated for those who started from street outreach, transitional housing, or day/emergency shelter and exited to permanent housing Category 1 (rapid rehousing and permanent supportive housing).

Demographics

  • Unknown categories are grouped together. For example, in Race chart, unknown includes categories ‘Client Refused', 'Data Not Collected', 'Client doesn't Know', and ‘NULL’.
  • Counts show the total number of distinct clients per year, using the same method as described in Volume/ Program Participation above.

Execution Instructions for Local Development

  1. Create a local PostgreSQL database named "sac_hmis_db".
  2. Create a local .env file with your PostgreSQL username and password. See sample-env.txt file for format.
  3. Use a terminal to navigate to the main folder and run set-up.py.
  4. Run app.py.
  5. Open your browser and go to the url http://localhost:5000/.

Project Leads

Graham Penrose & Scott Clark

Code for Sacramento's Projects

adopt-a-hydrant icon adopt-a-hydrant

A Ruby on Rails application that allows citizens to "adopt" civic infrastructure, such as fire hydrants.

benefisher icon benefisher

Repository for the Benefisher social service search application.

bikecounter icon bikecounter

A bicycle (and pedestrian) traffic counter, designed in partnership with SABA.

cawaterdatachallenge icon cawaterdatachallenge

Code For Sacramento's answer to questions from the 2018 California Safe Drinking Water Data Challenge

citx-api icon citx-api

An API to wrap civic information around categories and topics that people care about instead of the fragmented structure of government.

ckan icon ckan

CKAN is an open-source DMS (data management system) for powering data hubs and data portals. CKAN makes it easy to publish, share and use data. It powers the http://thedatahub.org/ and http://data.gov.uk/ among many other sites.

click_that_hood icon click_that_hood

A game where users must identify a city's neighborhoods as fast as possible

codeacross-2016 icon codeacross-2016

Waffle Hackshop: a board in Waffle.io with cards for each action you should do to kickoff a project.

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.