Skip to content

ralph-groupscholar/groupscholar-yield-forecast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Group Scholar Yield Forecast

Group Scholar Yield Forecast is a data-backed CLI for projecting scholarship offer yields. It connects to the Group Scholar PostgreSQL database, summarizes cohort offer performance, and forecasts expected acceptances using historical yield rates.

Features

  • Cohort-level offer and acceptance rollups
  • Forecasted acceptances for active cohorts using historical yield
  • Optional filtering by cohort name
  • Target offer gap tracking per cohort
  • Award amount rollups with projected award spend
  • Table, CSV, or JSON output formats
  • Optional yield-rate override for scenario planning
  • Program or region groupings for executive rollups

Tech

  • R (DBI + RPostgres)
  • PostgreSQL (production)

Setup

  1. Install R packages:
install.packages(c("DBI", "RPostgres", "jsonlite"))
  1. Set environment variables (example):
export PGHOST="db-acupinir.groupscholar.com"
export PGPORT="23947"
export PGUSER="ralph"
export PGPASSWORD="<set-in-shell>"
export PGDATABASE="postgres"
  1. Run the CLI:
./bin/gs-yield-forecast --as-of=2026-02-08 --format=table
./bin/gs-yield-forecast --cohort="Spring 2025" --format=json
./bin/gs-yield-forecast --yield-rate=0.62 --format=csv
./bin/gs-yield-forecast --group-by=region --format=table
./bin/gs-yield-forecast --group-by=program --format=table
./bin/gs-yield-forecast --group-by=region --yield-rate=0.58 --format=csv

Database

This project uses the groupscholar_yield_forecast schema. Schema and seed files live in sql/.

Testing

Rscript -e "testthat::test_dir('tests/testthat')"

Roadmap

  • Add scenario presets for multiple yield-rate overrides

About

R-based CLI for forecasting scholarship offer yields with Postgres data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors