USA Banner
  U.S. flag
              An official website of the United States government Here's how you knowOfficial US Government Icon
              **Official websites use .gov**A **.gov** website belongs to an official government organization in the United States.
            Secure Site Icon
              **Secure .gov websites use HTTPS**
                  A **lock** ( A locked padlock ) or **https://** means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites. 
 U.S. Department of Transportation Icon United States Department of Transportation
 Search DOT
            Search
                    About FHWAFHWA Organization
                Headquarters Offices
                Field Offices
                Strategic Plan
                Business Opportunities
                Staff Directories
                Careers
                Highway History
                Contact UsProgramsAcquisition Management
                Civil Rights
                Federal Lands Highway
                Infrastructure
                Innovative Program Delivery
                Operations
                Planning, Environment, and Realty
                Policy
                Research, Development, and Technology
                Safety
                Browse by TopicsResourcesCore Highway Topics
                Federal Aid Essentials
                Automation
                Complete Streets
                Laws and Regulations
                Policy & Guidance Center
                Section 508
                Publications and Statistics
                Professional Development
                National Highway Institute
                Resource Center
                Accessibility Resource Library
                FHWA Research LibraryNewsroomPress Releases
                Speeches & Testimony
                Photos
                Videos
                Media ContactsMenu FHWA Highway Safety Programs Home
                        Safety
                        Safety Data Analysis & Tools
                        RSDP
                        RSDP Tools


            
            In This Section
        Safety Data Analysis & Tools
                Crash Modification Factor Clearinghouse
                Roadway Safety Data Program (RSDP)
                                Overview
                Data Driven Safety Analysis
                Data Management
                Safety Data Analysis Tools
                Local Data Integration
                Technical Assistance
                Case Studies
                Training
                Resources
                Highway Safety Manual (HSM)
                Model Inventory of Roadway Elements (MIRE) and FDEs
                Systemic
                                Overview
                Why Systemic
                Training
                Resources
                Road Safety Audits
                                Overview
                Benefits
                Legal Issues
                Steps of Conduct
                Training
                Resources
      
   Tags
            safety data
                
                SPF-R Web Tool
**Description:**
        The Highway Safety Manual (HSM) was first published by AASHTO in 2010 and provides guidance for safety analysis in highway transportation project planning and development. The HSM contains predictive methods for infrastructure improvement project alternative analysis and development/design including the use of national safety performance functions developed to predict crashes by severity specific facility types and base conditions; and associated crash modification factors (CMFs) to estimate the potential effects of design alternatives or changes from base conditions.



In 2017 the Kentucky Transportation Center developed a tool using the free and open-source statistical computing and graphics environment “R”. Utilizing methods outlined by the HSM, code was created in R to automate SPF development to improve regression models. The tool became known as SPF-R and allowed states that have not adopted newer methodologies due to the difficulties related to SPF development the ability to create Safety Performance Functions. SPF-R provides immediate feedback in SPF development, including goodness-of-fit measures and depictions of the model. SPF-R is now in the FHWA Safety Toolbox, but it does require someone with a working knowledge of how to run R code, as well as an application downloaded to a computer in order to run.

Recognizing that running code may be a barrier for some, this new version of the code takes the SPF-R and runs it on a server. A new web interface has been developed so SPFs may be developed through a user’s web browser simply by uploading a CSV file with certain predefined parameters. Users of this new tool will have fewer technical challenges getting SPF-R working as the mechanics are all handled online. SPF-R online is still free and open-source, but in this current form it is more accessible than ever before.
    
          **Tool Type:**
        Software
    
          **Data and System Requirements:**
        SPF-R User’s Guide: This application guide provides background information and serves as a how-to manual for SPF-R.
    
    
          **Owner Source:**
        university
    
          **Sponsor/Owner:**
        Kentucky Transportation Center, University of Kentucky
    
        **Published:**
      2022
    
        **Availability:**
      This software is free of charge at the following link:

SPF-R Web Tool
    
          **Disclaimer:**
        This information is disseminated under the sponsorship of the U.S. Department of Transportation in the interest of information exchange. The U.S. Government assumes no liability for the use of the information contained herein. This information does not constitute a standard, specification, or regulation. The U.S. Government does not endorse products or manufacturers. Trademarks or manufacturer's names appear in this information only because they are considered essential to the objective of this publication.
          Any opinions, findings, and conclusions or recommendations, and translations thereof, expressed in this publication are those of the author(s) and do not necessarily reflect the views of the Federal Highway Administration. U.S. DEPARTMENT OF TRANSPORTATION

**Federal Highway Administration**

1200 NEW JERSEY AVENUE, SE

WASHINGTON, DC 20590

202-366-4000Subscribe to email updates
                    About
  

        
              About FHWA
                Careers
                Org Chart
                Staff Directories
                Work with UsPrograms
  

        
              Acquisition Management
                Civil Rights
                Federal Lands Highway
                Infrastructure
                Innovative Program Delivery
                Operations
                Planning, Environment, and Realty
                Policy
                Research, Development, and Technology
                SafetyPolicies, Rights, Legal
  

        
              About DOT
                Accessibility
                Budget and Performance
                Civil Rights
                FOIA
                Information Quality
                No FEAR Act
                Office of Inspector General
                Privacy Policy
                USA.gov
                Web Policies and Notices
                Web StandardsNews & Events
  

        
              Newsroom
                Press Releases
                Speeches & Testimony
                Media Contacts
                Connect with Us