Learn R Programming

readmit (version 0.0.1)

hsr_coefficients: Extract risk model coefficients from a Hospital-Specific Report (HSR)

Description

Parses out the regression coefficients from the logistic regression model used by CMS to estimate discharge-level readmission risk, including the hospital-level and hospital average intercept terms.

Note: CMS changed the format of Hospital-Specific Reports (HSRs) for FY2026 (see here). The current HSR functions support formats through FY2025.

Usage

hsr_coefficients(file, cohort)

Value

A tibble::tibble() containing the columns:

  • Factor: The model term name (as listed in the file)

  • Value: The model coefficient value (on the linear predictor scale)

Arguments

file

File path to a report

cohort

Cohort to extract the coefficients for. One of c("AMI", "COPD", "HF", "PN", "CABG", "HK")

Examples

Run this code
# Access a report
my_report <- hsr_mock_reports("FY2025_HRRP_MockHSR.xlsx")

# Show coefficients for heart failure model
hsr_coefficients(my_report, "HF")

Run the code above in your browser using DataLab