Alice Hannah
Data Innovation Team, Scottish Government
23 October 2024
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?
Automated statistical and analytical processes that are:
Reproducible
Auditable
Efficient
High quality
In order to achieve these 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
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
Developed by Government Analysis Function to help analysts and analyst leaders understand why RAP is important and how to deliver it.
Vision: RAP is the default approach to analysis
Three goals
Tools
Capability
Culture
School Information Dashboards
10 data sources
Data cleaned, linked and analysed manually in Excel
Dashboards created in Tableau
Updated twice a year; each update took three weeks of work for three statisticians - longer if errors were found
Engage with SG RAP support team
Define aims – what will success look like?
Mock ups of what dashboards would look like
Planning how best to structure datasets
Work with data providers to improve process
Organised folder structure
Standardised naming conventions
Open-source software
Relative file paths
Faster
Previously took three weeks for three statisticians (twice per year)
Now takes at most one day for one statistician (twice per year)
More accurate
Reduced risk
Well documented
Developed skills to apply to other projects
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?
Blog: How we saved 3 analysts 6 weeks of copying and pasting
Email me – I’m always happy to talk about RAP!