Skip to content

Commit e5cdbff

Browse files
authored
docs: edited and formatted md files using makedocs (#5)
* set up environment created venv, requirements.txt, and added /venv to .gitignore file * makedocs setup installed makedocs, created mkdocs and ci yml files, updated requirements using freeze * refactor: changed outline formatting and removed unnecessary content * fix: edited var names in script_reference and output files in readme * fix: dropped unnecessary content and reorganized outline * fix: reorganized content outline * refactor: dropped index md file * fix: edited IPD class and score table * fix: added code blocks for summary tables * fix: updated outline and added data process descriptions * added ipdDiscussion content to index.md * fix: updated IPD bucket formula * docs: deleted documentation folder and files * feat: added setup md file and hyperlinks * docs: edited ipd score threshold * docs: updated R and R Studio hyperlinks * docs: removed Project Structure section * docs: updated text and hyperlinks in Fields section * docs: updated variance replicates text * docs: updated variance replicates hyperlink * docs: edited IPD score threshold * docs: removed Additional Information section in readme * docs: updated hyperlinks in readme * style: added custom color palette
1 parent 9c9d802 commit e5cdbff

13 files changed

Lines changed: 845 additions & 1104 deletions

File tree

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
permissions:
8+
contents: write
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Configure Git Credentials
15+
run: |
16+
git config user.name github-actions[bot]
17+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: 3.x
21+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
22+
- uses: actions/cache@v4
23+
with:
24+
key: ${{ github.ref }}
25+
path: .cache
26+
restore-keys: |
27+
mkdocs-material-
28+
- run: pip install mkdocs-material
29+
- run: mkdocs gh-deploy --force

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# environment variables
22
.env
33
.Renviron
4+
/venv
45

56
# Output files
67
/outputs

README.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Indicators of Potential Disadvantage
22

3-
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/).
3+
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/).
44

55
## Getting the Code and Software
66

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

1111
## Installing Package Dependencies
1212

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

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

52-
- ipd.csv: tract-level statistics and scores for IPD's nine indicators
53-
- ipd.shp: spatial version of ipd.csv
54-
- breaks_by_indicator.csv: bin breaks by indicator
55-
- counts_by_indicator.csv: census tract counts by bin and indicator
56-
- summary_by_indicator.csv: basic summary stats by indicator
57-
- mean_by_county.csv: population-weighted county means by indicator
58-
59-
## Additional Information
60-
61-
- [documentation/discussion.pdf](https://github.com/dvrpc/ipd/blob/master/documentation/discussion.pdf) shows the essential math required to compute IPD scores.
62-
- [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.
52+
- ipd_`ipd_year`.csv: tract-level statistics and scores for IPD's nine indicators
53+
- ipd_`ipd_year`.shp: spatial version of ipd.csv
54+
- breaks_by_indicator_`ipd_year`.csv: bin breaks by indicator
55+
- counts_by_indicator_`ipd_year`.csv: census tract counts by bin and indicator
56+
- summary_by_indicator_`ipd_year`.csv: basic summary stats by indicator
57+
- means_by_county_`ipd_year`.csv: population-weighted county means by indicator

docs/index.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## Background
2+
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.
3+
4+
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.
5+
6+
## IPD Indicators and ACS Data
7+
| IPD Indicator | ACS Data Table | Protected Class Representation | Authorizing Source/Guiding Document |
8+
| ------------- | -------------- | ------------------------------ | ----------------------------------- |
9+
| Youth | B09001: Population Under 18 Years by Age | Age | FHWA's Title VI Program and Related Authorities: 23 CFR 200 |
10+
| Older Adults | S0101: Age and Sex | Age | FHWA's Title VI Program and Related Authorities: 23 CFR 200 |
11+
| Female | S0101: Age and Sex | Sex | FHWA's Title VI Program and Related Authorities: 23 CFR 200 |
12+
| 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 |
13+
| 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 |
14+
| 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 |
15+
| 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 |
16+
| Disabled | S1810: Disability Characteristics | Disability | FHWA's Title VI Program and Related Authorities: 23 CFR |
17+
| 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 |
18+
19+
## IPD Score
20+
IPD Scores can be presented in two ways: individual IPD score and composite IPD score.
21+
22+
### Individual IPD Score
23+
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.
24+
25+
`p` = percent estimate
26+
`mean(pop)` = mean for indicator population
27+
`stdev(pop)` = standard deviation for indicator population
28+
29+
| IPD Score | IPD Classification | Standard Deviations |
30+
|:---------:|:------------------:|:-------------------:|
31+
| 0 | Well Below Average | p < mean(pop) - (1.5 * stdev(pop)) |
32+
| 1 | Below Average | mean(pop) - (1.5 * stdev(pop)) <= p < mean(pop) - (0.5 * stdev(pop))|
33+
| 2 | Average | mean(pop) - (0.5 * stdev(pop)) <= p < mean(pop) + (0.5 * stdev(pop))|
34+
| 3 | Above Average | mean(pop) + (0.5 * stdev(pop)) <= p < mean(pop) + (1.5 * stdev(pop))|
35+
| 4 | Well Above Average | p >= mean(pop) + (1.5 * stdev(pop))|
36+
37+
### Composite IPD Score
38+
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.
39+

0 commit comments

Comments
 (0)