Currently under active development
A loneliness index for the UK.
The loneliness index scores, ranks and deciles each LSOA in each nation of the UK from most lonely to least lonely. In England the score is based on a self-reported survey (Community Life Survey). In Scotland, Wales and Northern Ireland the score is based on GP prescriptions associated with loneliness related conditions. Scores are comparable within nations but not between nations.
The code and approach for Scotland, Wales and Northern Ireland is based on an approach developed by the Office for National Statistics' Data Science Campus, which uses GP prescription data to find areas with above-average prescriptions for conditions where loneliness has been shown to be a risk factor: Alzheimer's, depression, hyperternsion, diabetes, cardiovascular disease, anxiety, addiction and insomnia.
This project uses requirements.txt to manage Python package dependencies.
Instruction below to create and activate the virtual environment using Python's inbuilt venv module:
Create a new virtual environment:
python -m venv venv_lonelinessActivate the virtual environment:
venv_loneliness\Scripts\activate.bat
source venv_loneliness/bin/activate
Install the packages:
pip install -r requirements-win.txt
pip install -r requirements-unix.txt
Deactivate the virtual environment:
deactivateSources for the treatment drugs below: