edfinr

R-CMD-check CRAN Badge CRAN downloads

An R package for downloading and analyzing education finance data from multiple sources.

Installation

You can install edfinr from CRAN with:

install.packages("edfinr")

You can install the development version of edfinr from GitHub with:

pak::pkg_install("bellwetherorg/edfinr") 

Data Sources

This package provides access to education finance data from:

Data Processing Methods

Data Processing Detail

Full data processing methods and scripts are available on GitHub via bellwetherorg/edfinr_data_cleaning.

NCES F-33 Survey Data

Data source: NCES Common Core of Data text files of F-33 data from 2011-12 through 2022-23.

Raw variables selected:

Adjustments:

CCD Directory Data

Data source: NCES CCD Directory data obtained via the educationdata package.

Raw variables selected:

Adjustments:

SAIPE Poverty Estimates

Data source: Census Bureau SAIPE Estimates

Raw variables selected:

Adjustments:

ACS 5-Year Estimates

Data source: American Community Survey 5-Year Estimates accessed via the tidycensus package

Raw variables selected:

Adjustments:

CPI

Data source: U.S. Bureau of Labor Statistics, specifically the Consumer Price Index for All Urban Consumers (CPI-U)

Raw variables selected:

Adjustments:

Census Gazetteer Files

Data source: U.S. Census Bureau Gazetteer Files, school district vintages.

Raw variables selected:

Adjustments:

Joining Data

Revenue Adjustments

Additional transformations are applied after the join: - State revenue for capital outlay and debt service (C11) is subtracted from state revenues; the subtracted amount ships as rev_state_cap_debt in both datasets (zero-filled, not NA, for non-reporting districts), unadjusted state revenue is preserved in rev_state_unadj/rev_state_unadj_pp, and c11_spike_flag marks district-years where this adjustment produces an anomalous spike - Property sales (U11) are subtracted from local revenues - For Texas LEAs in 2012-13 and earlier, payments to state governments (L12) are subtracted from local revenues - Payments to other school systems (V91, V92, and Q11) are proportionally subtracted from local, state, and federal revenues

Exclusions

Data Notes and Cautions

Users should note the following when working with the edfinr datasets:

Authors