Data Innovation Team, Scottish Government
31 July 2025
Would it be a nightmare to have to go back and rerun your process from the beginning if you found a mistake?
Do you have to make a lot of manual edits to code before each run?
Is there a lot of repetition in your code?
Would a new person find it difficult to understand the process?
An overall approach to analysis
Automated statistical and analytical processes that are:
Reproducible
Auditable
Efficient
High quality
Source: Government Analysis Function
In order to achieve the full benefits, at a minimum a RAP must:
Minimise manual steps
Be built using open-source software; e.g. R, Python
Be peer reviewed by colleagues
Source: Government Analysis Function
Be version controlled; e.g. Git
Be open to anyone; e.g. code published on GitHub
Follow good practice for quality assurance
Contain well-commented code and have documentation embedded
Source: Government Analysis Function
RAP Self-Assessment Tool developed internally for analysts in the Scottish Government.
Specific criteria for RAP categorised into 4 ‘levels’: Aspiring, Fundamental, Intermediate and Advanced.
Description and links to further resources for each criteria.
Complete form and download report to track progress and inform next steps.
Create a process map and make a plan
Don’t be restricted by the current set up
Use the RAP Self-Assessment Tool
Start small and improve iteratively
School Information Dashboards (Read the blog)
Centralised Surveys (View the code on GitHub)
Planned Care (Look out for a blog coming soon)