Title: | Index of Multiple Deprivation Data for the UK |
---|---|
Description: | Index of Multiple Deprivation for UK nations at various geographical levels. In England, deprivation data is for Lower Layer Super Output Areas, Middle Layer Super Output Areas, Wards, and Local Authorities based on data from <https://www.gov.uk/government/statistics/english-indices-of-deprivation-2019>. In Wales, deprivation data is for Lower Layer Super Output Areas, Middle Layer Super Output Areas, Wards, and Local Authorities based on data from <https://gov.wales/welsh-index-multiple-deprivation-full-index-update-ranks-2019>. In Scotland, deprivation data is for Data Zones, Intermediate Zones, and Council Areas based on data from <https://simd.scot>. In Northern Ireland, deprivation data is for Super Output Areas and Local Government Districts based on data from <https://www.nisra.gov.uk/statistics/deprivation/northern-ireland-multiple-deprivation-measure-2017-nimdm2017>. The 'IMD' package also provides the composite UK index developed by <https://github.com/mysociety/composite_uk_imd>. |
Authors: | Matthew Gwynfryn Thomas [cre, aut, cph], Mike Page [aut] |
Maintainer: | Matthew Gwynfryn Thomas <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.2.1 |
Built: | 2024-10-30 06:42:21 UTC |
Source: | https://github.com/humaniverse/IMD |
Aggregate deprivation scores into higher-level geographies, calculating: - proportion of highly deprived areas - extent (proportion of the local population that live in the most deprived areas) - population-weighted average score
aggregate_scores( data, score_col, rank_col, decile_col, higher_level_geography, population )
aggregate_scores( data, score_col, rank_col, decile_col, higher_level_geography, population )
data |
Data frame containing a variable to be aggregated, lower level geography population estimates, and a higher level geographical grouping variable |
score_col |
Variable containing deprivation scores |
rank_col |
Variable containing deprivation ranks |
decile_col |
Variable containing deprivation deciles |
higher_level_geography |
Name of the variable in the data frame containing the higher level geography names/codes |
population |
Name of the variable in the data frame containing the population estimates of the lower level geography |
A tibble containing population-weighted average scores, proportions of highly deprived areas, and the extent for the higher-level geography.
extent
calculates 'extent' scores when aggregating up small areas.
calculate_extent(data, var, higher_level_geography, population)
calculate_extent(data, var, higher_level_geography, population)
data |
Data frame containing a variable to be aggregated, lower level geography population estimates, and a higher level geographical grouping variable |
var |
Name of the variable in the data frame containing the variable to be aggregated (e.g. rank) for the lower level geography |
higher_level_geography |
Name of the variable in the data frame containing the higher level geography names/codes |
population |
Name of the variable in the data frame containing the population estimates of the lower level geography |
"Extent" is the proportion of the local population that live in areas classified as among the most deprived in the higher geography. The calculation of extent is taken from the IMD technical report Appendix N:
"The population living in the most deprived 11 to 30 per cent of Lower-layer Super Output Areas receive a sliding weight, ranging from 0.95 for those in the most deprived eleventh percentile, to 0.05 for those in the most deprived thirtieth percentile. In practice this means that the weight starts from 0.95 in the most deprived eleventh percentile, and then decreases by (0.95-0.05)/19 for each of the subsequent nineteen percentiles until it reaches 0.05 for the most deprived thirtieth percentile, and zero for areas outside the most deprived 30 per cent"
Calculate population-weighted scores within small areas.
calculate_pop_weighted_score(data, var, higher_level_geography, population)
calculate_pop_weighted_score(data, var, higher_level_geography, population)
data |
Data frame containing a variable to be aggregated, lower level geography population estimates, and a higher level geographical grouping variable |
var |
Name of the variable in the data frame containing the variable to be aggregated (e.g. rank) for the lower level geography |
higher_level_geography |
Name of the variable in the data frame containing the higher level geography names/codes |
population |
Name of the variable in the data frame containing the population estimates of the lower level geography |
Calculate proportion of small areas in the higher-level geography that are within the 10
calculate_proportion(data, var, higher_level_geography, max_quantile = 1)
calculate_proportion(data, var, higher_level_geography, max_quantile = 1)
data |
Data frame containing a variable to be aggregated, lower level geography population estimates, and a higher level geographical grouping variable |
var |
Name of the variable in the data frame containing the variable to be aggregated (e.g. decile) for the lower level geography |
higher_level_geography |
Name of the variable in the data frame containing the higher level geography names/codes |
max_quantile |
Get proportion of small areas categorised as less than or equal to 'max_quantile' (default = 1) |
A data set containing the Community Needs Index scores and ranks and its three domains. Also highlights which areas are categorised as 'Left Behind'.
cni_england_ward17
cni_england_ward17
A data frame of class "tbl" with 7433 rows and 13 variables:
Ward code
Ward name
Local Authority code
Local Authority name
Score for the Civic Assets domain (higher score = higher needs)
Rank for the Civic Assets domain (1 = highest needs)
Score for the Connectedness domain (higher score = higher needs)
Rank for the Connectedness domain (1 = highest needs)
Score for the Engaged Community domain (higher score = higher needs)
Rank for the Engaged Community domain (1 = highest needs)
Overall Community Needs Index score (higher score = higher needs)
Overall Community Needs Index rank (1 = highest needs)
TRUE if this Ward is a Left Behind Area
...
A data set containing the Community Needs Index scores and ranks and its three domains. Also highlights which areas are categorised as 'Left Behind'.
cni_northern_ireland_soa11
cni_northern_ireland_soa11
A data frame of class "tbl" with 890 rows and 13 variables:
Super Output Area code
Super Output Area name
Local Government District name
Local Government District code
Score for the Civic Assets domain (higher score = higher needs)
Rank for the Civic Assets domain (1 = highest needs)
Score for the Connectedness domain (higher score = higher needs)
Rank for the Connectedness domain (1 = highest needs)
Score for the Engaged Community domain (higher score = higher needs)
Rank for the Engaged Community domain (1 = highest needs)
Overall Community Needs Index score (higher score = higher needs)
Overall Community Needs Index rank (1 = highest needs)
TRUE if this Ward is a Left Behind Area
...
A data set containing the Community Needs Index scores and ranks and its three domains. Also highlights which areas are categorised as 'Left Behind'.
cni_scotland_iz11
cni_scotland_iz11
A data frame of class "tbl" with 1,279 rows and 11 variables:
Intermediate Zone code
Intermediate Zone name
Score for the Civic Assets domain (higher score = higher needs)
Rank for the Civic Assets domain (1 = highest needs)
Score for the Connectedness domain (higher score = higher needs)
Rank for the Connectedness domain (1 = highest needs)
Score for the Engaged Community domain (higher score = higher needs)
Rank for the Engaged Community domain (1 = highest needs)
Overall Community Needs Index score (higher score = higher needs)
Overall Community Needs Index rank (1 = highest needs)
TRUE if this Ward is a Left Behind Area
...
A data set containing the Community Needs Index scores and ranks and its three domains. Also highlights which areas are categorised as 'Left Behind'.
cni_wales_msoa11
cni_wales_msoa11
A data frame of class "tbl" with 410 rows and 12 variables:
MSOA code
MSOA name
Local Authority name
Score for the Civic Assets domain (higher score = higher needs)
Rank for the Civic Assets domain (1 = highest needs)
Score for the Connectedness domain (higher score = higher needs)
Rank for the Connectedness domain (1 = highest needs)
Score for the Engaged Community domain (higher score = higher needs)
Rank for the Engaged Community domain (1 = highest needs)
Overall Community Needs Index score (higher score = higher needs)
Overall Community Needs Index rank (1 = highest needs)
TRUE if this Ward is a Left Behind Area
...
A data set containing aggregated scores and proportions for Local Authorities in England. Note that extents are not available.
imd_england_lad
imd_england_lad
A data frame of class "tbl" with 317 rows and 18 variables:
LAD code
Population-weighted average score
Proportion of small areas in the nation's most deprived
Extent for overall IMD
Population-weighted average score for Income domain
Proportion of most deprived areas for Income
Population-weighted average score for Employment domain
Proportion of most deprived areas for Employment
Population-weighted average score for Education domain
Proportion of most deprived areas for Education
Population-weighted average score for Health domain
Proportion of most deprived areas for Health
Population-weighted average score for Crime domain
Proportion of most deprived areas for Crime
Population-weighted average score for Housing/Access domain
Proportion of most deprived areas for Housing/Access domain
Population-weighted average score for Environment domain
Proportion of most deprived areas for Environment
...
A data set containing deprivation sub-domain ranks and deciles for Local Authorities in England.
imd_england_lad_subdomains
imd_england_lad_subdomains
A data frame of class "tbl" with 317 rows and 13 variables:
Local Authority code
Children and Young People sub-domain proportion
Children and Young People sub-domain extent
Adult Skills sub-domain proportion
Adult Skills sub-domain extent
Geographical Barriers sub-domain proportion
Geographical Barriers sub-domain extent
Wider Barriers sub-domain proportion
Wider Barriers sub-domain extent
Indoors sub-domain proportion
Indoors sub-domain extent
Outdoors sub-domain proportion
Outdoors sub-domain extent
...
A data set containing IMD ranks and deciles for Lower Layer Super Output Areas (LSOAs) in England.
imd_england_lsoa
imd_england_lsoa
A data frame of class "tbl" with 32,844 rows and 17 variables:
LSOA code
IMD decile
Income domain decile
Employment domain decile
Education domain decile
Health and Disability domain decile
Crime domain decile
Housing and access to services domain decile
Environment domain decile
IMD rank
Income domain rank
Employment domain rank
Education domain rank
Health domain rank
Crime domain rank
Housing and access to services domain rank
Environment domain rank
...
A data set containing deprivation sub-domain ranks and deciles for Lower Layer Super Output Areas (LSOAs) in England.
imd_england_lsoa_subdomains
imd_england_lsoa_subdomains
A data frame of class "tbl" with 32,844 rows and 19 variables:
LSOA code
Education domain decile
Children and Young People sub-domain decile
Adult Skills sub-domain decile
Housing and access to services domain decile
Geographical Barriers sub-domain decile
Wider Barriers sub-domain decile
Environment domain decile
Indoors sub-domain decile
Outdoors sub-domain decile
Education domain rank
Children and Young People sub-domain rank
Adult Skills sub-domain rank
Housing and access to services domain rank
Geographical Barriers sub-domain rank
Wider Barriers sub-domain rank
Environment domain rank
Indoors sub-domain rank
Outdoors sub-domain rank
...
A data set containing population-weighted average scores, proportions and extents for Middle Layer Super Output Areas (LSOAs) in England.
imd_england_msoa
imd_england_msoa
A data frame of class "tbl" with 6,791 rows and 25 variables:
MSOA code
Population-weighted average IMD score
Proportion of small areas in the nation's most deprived
Extent for overall IMD
Population-weighted average score for Income domain
Proportion of most deprived areas for Income
Extent for Income
Population-weighted average score for Employment domain
Proportion of most deprived areas for Employment
Extent for Employment
Population-weighted average score for Education domain
Proportion of most deprived areas for Education
Extent for Education
Population-weighted average score for Health domain
Proportion of most deprived areas for Health
Extent for Health
Population-weighted average score for Crime domain
Proportion of most deprived areas for Crime
Extent for Crime
Population-weighted average score for Housing/Access domain
Proportion of most deprived areas for Housing/Access domain
Extent for Housing/Access
Population-weighted average score for Environment domain
Proportion of most deprived areas for Environment
Extent for Environment
...
A data set containing deprivation sub-domain ranks and deciles for Middle Layer Super Output Areas (MSOAs) in England.
imd_england_msoa_subdomains
imd_england_msoa_subdomains
A data frame of class "tbl" with 6,791 rows and 13 variables:
MSOA code
Children and Young People sub-domain proportion
Children and Young People sub-domain extent
Adult Skills sub-domain proportion
Adult Skills sub-domain extent
Geographical Barriers sub-domain proportion
Geographical Barriers sub-domain extent
Wider Barriers sub-domain proportion
Wider Barriers sub-domain extent
Indoors sub-domain proportion
Indoors sub-domain extent
Outdoors sub-domain proportion
Outdoors sub-domain extent
...
A data set containing population-weighted average scores, proportions and extents for wards in England.
imd_england_ward
imd_england_ward
A data frame of class "tbl" with 7,180 rows and 25 variables:
Ward code
Population-weighted average IMD score
Proportion of small areas in the nation's most deprived
Extent for overall IMD
Population-weighted average score for Income domain
Proportion of most deprived areas for Income
Extent for Income
Population-weighted average score for Employment domain
Proportion of most deprived areas for Employment
Extent for Employment
Population-weighted average score for Education domain
Proportion of most deprived areas for Education
Extent for Education
Population-weighted average score for Health domain
Proportion of most deprived areas for Health
Extent for Health
Population-weighted average score for Crime domain
Proportion of most deprived areas for Crime
Extent for Crime
Population-weighted average score for Housing/Access domain
Proportion of most deprived areas for Housing/Access domain
Extent for Housing/Access
Population-weighted average score for Environment domain
Proportion of most deprived areas for Environment
Extent for Environment
...
A data set containing deprivation sub-domain ranks and deciles for wards in England.
imd_england_ward_subdomains
imd_england_ward_subdomains
A data frame of class "tbl" with 7,180 rows and 13 variables:
Ward code
Children and Young People sub-domain proportion
Children and Young People sub-domain extent
Adult Skills sub-domain proportion
Adult Skills sub-domain extent
Geographical Barriers sub-domain proportion
Geographical Barriers sub-domain extent
Wider Barriers sub-domain proportion
Wider Barriers sub-domain extent
Indoors sub-domain proportion
Indoors sub-domain extent
Outdoors sub-domain proportion
Outdoors sub-domain extent
...
A data set containing proportions and extents for Local Government Districts (Local Authorities) in Northern Ireland.
imd_northern_ireland_lad
imd_northern_ireland_lad
A data frame of class "tbl" with 11 rows and 25 variables:
LAD code
Proportion of small areas in the nation's most deprived
Extent for overall IMD
Proportion of most deprived areas for Income
Extent for Income
Proportion of most deprived areas for Employment
Extent for Employment
Proportion of most deprived areas for Education
Extent for Education
Proportion of most deprived areas for Health
Extent for Health
Proportion of most deprived areas for Crime
Extent for Crime
Proportion of most deprived areas for Access domain
Extent for Access
Proportion of most deprived areas for Environment
Extent for Environment
...
A data set containing IMD ranks and deciles for SOAs in Northern Ireland.
imd_northern_ireland_soa
imd_northern_ireland_soa
A data frame of class "tbl" with 890 rows and 17 variables:
Super Output Area code
IMD decile
Income domain decile
Employment domain decile
Health and Disability domain decile
Education domain decile
Access to services domain decile
Environment domain decile
Crime domain decile
IMD rank
Income domain rank
Employment domain rank
Health domain rank
Education domain rank
Access to services domain rank
Environment domain rank
Crime domain rank
...
A data set containing IMD ranks and deciles for Data Zones in Scotland
imd_scotland_dz
imd_scotland_dz
A data frame of class "tbl" with 6,976 rows and 17 variables:
Data Zone code
IMD decile
Income domain decile
Employment domain decile
Education domain decile
Health and Disability domain decile
Crime domain decile
Housing domain decile
Access to services domain decile
IMD rank
Income domain rank
Employment domain rank
Education domain rank
Health domain rank
Crime domain rank
Housing domain rank
Access to services domain rank
...
A data set containing proportions and extents for Intermediate Zones (IZs) in Scotland. Note that IMD scores for Scotland are not available.
imd_scotland_iz
imd_scotland_iz
A data frame of class "tbl" with 1,279 rows and 17 variables:
Intermediate Zone code
Proportion of small areas in the nation's most deprived
Extent for overall IMD
Proportion of most deprived areas for Income
Extent for Income
Proportion of most deprived areas for Employment
Extent for Employment
Proportion of most deprived areas for Education
Extent for Education
Proportion of most deprived areas for Health
Extent for Health
Proportion of most deprived areas for Crime
Extent for Crime
Proportion of most deprived areas for Housing domain
Extent for Housing
Proportion of most deprived areas for Access domain
Extent for Access
...
A data set containing proportions and extents for Council Areas (Local Authorities) in Scotland. Note that IMD scores for Scotland are not available.
imd_scotland_lad
imd_scotland_lad
A data frame of class "tbl" with 32 rows and 17 variables:
Local Authority code
Proportion of small areas in the nation's most deprived
Extent for overall IMD
Proportion of most deprived areas for Income
Extent for Income
Proportion of most deprived areas for Employment
Extent for Employment
Proportion of most deprived areas for Education
Extent for Education
Proportion of most deprived areas for Health
Extent for Health
Proportion of most deprived areas for Crime
Extent for Crime
Proportion of most deprived areas for Housing domain
Extent for Housing
Proportion of most deprived areas for Access domain
Extent for Access
...
A data set containing proportions and extents for Local Authorities in Wales. Note that IMD scores for Wales are not available.
imd_wales_lad
imd_wales_lad
A data frame of class "tbl" with 22 rows and 19 variables:
LAD code
Proportion of small areas in the nation's most deprived
Extent for overall IMD
Proportion of most deprived areas for Income
Extent for Income
Proportion of most deprived areas for Employment
Extent for Employment
Proportion of most deprived areas for Education
Extent for Education
Proportion of most deprived areas for Health
Extent for Health
Proportion of most deprived areas for Crime
Extent for Crime
Proportion of most deprived areas for Housing domain
Extent for Housing
Proportion of most deprived areas for Access domain
Extent for Access
Proportion of most deprived areas for Environment
Extent for Environment
...
A data set containing IMD ranks and deciles for Lower Layer Super Output Areas (LSOAs) in Wales.
imd_wales_lsoa
imd_wales_lsoa
A data frame of class "tbl" with 1,909 rows and 19 variables:
LSOA code
IMD decile
Income domain decile
Employment domain decile
Education domain decile
Health and Disability domain decile
Crime domain decile
Housing domain decile
Access to services domain decile
Environment domain decile
IMD rank
Income domain rank
Employment domain rank
Education domain rank
Health domain rank
Crime domain rank
Housing domain rank
Access to services domain rank
Environment domain rank
...
A data set containing proportions and extents for Middle Layer Super Output Areas (LSOAs) in Wales. Note that IMD scores for Wales are not available.
imd_wales_msoa
imd_wales_msoa
A data frame of class "tbl" with 410 rows and 28 variables:
MSOA code
Population-weighted average IMD score
Proportion of small areas in the nation's most deprived
Extent for overall IMD
Population-weighted average income score
Proportion of most deprived areas for Income
Extent for Income
Population-weighted average Employment score
Proportion of most deprived areas for Employment
Extent for Employment
Population-weighted average Education score
Proportion of most deprived areas for Education
Extent for Education
Population-weighted average Health score
Proportion of most deprived areas for Health
Extent for Health
Population-weighted average Crime score
Proportion of most deprived areas for Crime
Extent for Crime
Population-weighted average Housing score
Proportion of most deprived areas for Housing domain
Extent for Housing
Population-weighted average Access score
Proportion of most deprived areas for Access domain
Extent for Access
Population-weighted average Environment score
Proportion of most deprived areas for Environment
Extent for Environment
...
A data set containing population-weighted average scores, proportions and extents for wards in Wales Note that IMD scores for Wales are not available.
imd_wales_ward
imd_wales_ward
A data frame of class "tbl" with 843 rows and 19 variables:
Ward code
Proportion of small areas in the nation's most deprived
Extent for overall IMD
Proportion of most deprived areas for Income
Extent for Income
Proportion of most deprived areas for Employment
Extent for Employment
Proportion of most deprived areas for Education
Extent for Education
Proportion of most deprived areas for Health
Extent for Health
Proportion of most deprived areas for Crime
Extent for Crime
Proportion of most deprived areas for Housing domain
Extent for Housing
Proportion of most deprived areas for Access domain
Extent for Access
Proportion of most deprived areas for Environment
Extent for Environment
...
Load data from mySociety's composite 2020 UK Index of Multiple Deprivation: https://github.com/mysociety/composite_uk_imd.
load_composite_imd(nation = "E")
load_composite_imd(nation = "E")
nation |
The initial letter of the UK nation whose composite IMD you want to load. Should be one of: (E)ngland, (W)ales, (S)cotland (N)orthern Ireland. See the GitHub link about for more details about why there are separate composite IMDs for each nation. |
## Not run: imd_uk <- load_composite_imd("E") ## End(Not run)
## Not run: imd_uk <- load_composite_imd("E") ## End(Not run)