Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
5f27045
set up environment
brcarney Mar 19, 2024
1561d93
makedocs setup
brcarney Mar 20, 2024
e2d491e
refactor: changed outline formatting and removed unnecessary content
brcarney Mar 22, 2024
31b4780
fix: edited var names in script_reference and output files in readme
brcarney Mar 25, 2024
58c1338
fix: dropped unnecessary content and reorganized outline
brcarney Mar 25, 2024
78ffb8a
fix: reorganized content outline
brcarney Mar 26, 2024
e9ab457
refactor: dropped index md file
brcarney Mar 26, 2024
05a9907
fix: edited IPD class and score table
brcarney Mar 27, 2024
40b89a2
fix: added code blocks for summary tables
brcarney Mar 28, 2024
34c3181
fix: updated outline and added data process descriptions
brcarney Mar 29, 2024
1abc7af
added ipdDiscussion content to index.md
brcarney Mar 29, 2024
d8b26d0
fix: updated IPD bucket formula
brcarney Mar 29, 2024
7271fcd
docs: deleted documentation folder and files
brcarney Jun 3, 2024
45119f7
feat: added setup md file and hyperlinks
brcarney Jun 3, 2024
d8a4fe1
docs: edited ipd score threshold
brcarney Jun 6, 2024
e320feb
docs: updated R and R Studio hyperlinks
brcarney Jun 6, 2024
6c27750
docs: removed Project Structure section
brcarney Jun 6, 2024
1fd7bc5
docs: updated text and hyperlinks in Fields section
brcarney Jun 6, 2024
d5e86ca
docs: updated variance replicates text
brcarney Jun 6, 2024
71ad399
docs: updated variance replicates hyperlink
brcarney Jun 6, 2024
5bb6837
docs: edited IPD score threshold
brcarney Jun 6, 2024
61e357d
docs: removed Additional Information section in readme
brcarney Jun 11, 2024
e09d23c
docs: updated hyperlinks in readme
brcarney Jun 11, 2024
acfc0a4
style: added custom color palette
brcarney Jun 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: ci
on:
push:
branches:
- master
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: ${{ github.ref }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# environment variables
.env
.Renviron
/venv

# Output files
/outputs
Expand Down
25 changes: 10 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Indicators of Potential Disadvantage

This project automates DVRPC's Indicators of Potential Disadvantage (IPD) analysis, including data download, processing, and export. For more on IPD analysis, see [Equity Analysis for the Greater Philadelphia Region v2.0](https://www.dvrpc.org/webmaps/ipd/).
This project automates DVRPC's Indicators of Potential Disadvantage (IPD) analysis, including data download, processing, and export. For more on IPD analysis, see [Equity Analysis for the Greater Philadelphia Region](https://www.dvrpc.org/webmaps/ipd/).

## Getting the Code and Software

1. Clone the repository.
2. Download and install R from https://www.r-project.org/
3. Download and install R Studio from https://www.rstudio.com/products/rstudio/#Desktop
1. Clone the [Github repository](https://github.com/dvrpc/ipd)
2. [Download and install R](https://cran.rstudio.com/)
3. [Download and install R Studio](https://posit.co/download/rstudio-desktop/)

## Installing Package Dependencies

Expand Down Expand Up @@ -49,14 +49,9 @@ Please provide your own API Key (this is required for the `tidycensus` package,

After the code has finished, outputs are saved in the /outputs subdirectory of where you cloned the repository on your local machine, including:

- ipd.csv: tract-level statistics and scores for IPD's nine indicators
- ipd.shp: spatial version of ipd.csv
- breaks_by_indicator.csv: bin breaks by indicator
- counts_by_indicator.csv: census tract counts by bin and indicator
- summary_by_indicator.csv: basic summary stats by indicator
- mean_by_county.csv: population-weighted county means by indicator

## Additional Information

- [documentation/discussion.pdf](https://github.com/dvrpc/ipd/blob/master/documentation/discussion.pdf) shows the essential math required to compute IPD scores.
- [documentation/script_reference.pdf](https://github.com/dvrpc/ipd/blob/master/documentation/script_reference.pdf) is a companion document to the script and explains the way the script downloads data and implements IPD analysis, code chunk by code chunk.
- ipd_`ipd_year`.csv: tract-level statistics and scores for IPD's nine indicators
- ipd_`ipd_year`.shp: spatial version of ipd.csv
- breaks_by_indicator_`ipd_year`.csv: bin breaks by indicator
- counts_by_indicator_`ipd_year`.csv: census tract counts by bin and indicator
- summary_by_indicator_`ipd_year`.csv: basic summary stats by indicator
- means_by_county_`ipd_year`.csv: population-weighted county means by indicator
39 changes: 39 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
## Background
DVRPC's [Indicators of Potential Disadvantage](https://www.dvrpc.org/webmaps/ipd/#home) (IPD) identify populations of interest under Title VI of the Civil Rights Act and the Executive Order on Environmental Justice (#12898) using American Community Survey (ACS) five-year estimates from the U.S. Census Bureau. IPD analysis assists both DVRPC and outside organizations in equity work by identifying populations of interest, including youth, older adults, female, racial minority, ethnic minority, foreign-born, limited English proficiency, disabled, and low-income populations at the census tract level in DVRPC's nine-county region.

Below is an overview of the calculations required to conduct IPD analysis and is meant to provide enough information to replicate prior years of IPD analysis.

## IPD Indicators and ACS Data
| IPD Indicator | ACS Data Table | Protected Class Representation | Authorizing Source/Guiding Document |
| ------------- | -------------- | ------------------------------ | ----------------------------------- |
| Youth | B09001: Population Under 18 Years by Age | Age | FHWA's Title VI Program and Related Authorities: 23 CFR 200 |
| Older Adults | S0101: Age and Sex | Age | FHWA's Title VI Program and Related Authorities: 23 CFR 200 |
| Female | S0101: Age and Sex | Sex | FHWA's Title VI Program and Related Authorities: 23 CFR 200 |
| Racial Minority | B02001: Race | Race and Minority | Executive Order 12898, Title VI of the Civil Rights Act of 1964, FHWA's Title VI Program and Related Authorities: 23 CFR, and Title VI Requirements and Guidelines for FTA Recipients |
| Ethnic Minority | B03002: Hispanic or Latino Origin by Race | Minority and National Origin | Executive Order 12898, Title VI of the Civil Rights Act of 1964, FHWA's Title VI Program and Related Authorities: 23 CFR, and Title VI Requirements and Guidelines for FTA Recipients |
| Foreign-Born | B05012: Nativity in the United States | National Origin | Title VI of the Civil Rights Act of 1964, FHWA's Title VI Program and Related Authorities: 23 CFR, and Title VI Requirements and Guidelines for FTA Recipients |
| Limited English Proficiency | S1601: Language Spoken at Home | Limited English Proficiency and National Origin | Title VI of the Civil Rights Act of 1964, FHWA's Title VI Program and Related Authorities: 23 CFR, and Title VI Requirements and Guidelines for FTA Recipients |
| Disabled | S1810: Disability Characteristics | Disability | FHWA's Title VI Program and Related Authorities: 23 CFR |
| Low-Income | S1701: Poverty Status in Past 12 Months | Low-Income | Executive Order 12898 and FHWA's Title VI Program and Related Authorities: 23 CFR 200 |

## IPD Score
IPD Scores can be presented in two ways: individual IPD score and composite IPD score.

### Individual IPD Score
For each indicator, percent estimates are split into five bins, which are detailed in the table below. There is one exception to the standard deviation classification: if `mean(pop) - (1.5 * stdev(pop))` is a negative value, it is manually reassigned to 0.1. This ensures that at least some census tracts fall in the bottom bin regardless of the spread of the indicator.

`p` = percent estimate
`mean(pop)` = mean for indicator population
`stdev(pop)` = standard deviation for indicator population

| IPD Score | IPD Classification | Standard Deviations |
|:---------:|:------------------:|:-------------------:|
| 0 | Well Below Average | p < mean(pop) - (1.5 * stdev(pop)) |
| 1 | Below Average | mean(pop) - (1.5 * stdev(pop)) <= p < mean(pop) - (0.5 * stdev(pop))|
| 2 | Average | mean(pop) - (0.5 * stdev(pop)) <= p < mean(pop) + (0.5 * stdev(pop))|
| 3 | Above Average | mean(pop) + (0.5 * stdev(pop)) <= p < mean(pop) + (1.5 * stdev(pop))|
| 4 | Well Above Average | p >= mean(pop) + (1.5 * stdev(pop))|

### Composite IPD Score
The composite IPD score is computed by summing the individual IPD scores. In theory, the composite IPD score can range from 0 to 36, since each indicator's IPD score can be as high as 4. In practice, the mean composite score in 2021 is 17.57, and the highest observed composite score is 32.

Loading