MyNixOS website logo
Description

Import Public Health Ontario's Ontario Marginalization Index.

The Ontario Marginalization Index is a socioeconomic model that is built on Statistics Canada census data. The model consists of four dimensions: In 2021, these dimensions were updated to "Material Resources" (previously called "Material Deprivation"), "Households and Dwellings" (previously called "Residential Instability"), "Age and Labour Force" (previously called "Dependency"), and "Racialized and Newcomer Populations" (previously called "Ethnic Concentration"). This update reflects a movement away from deficit-based language. 2021 data will load with these new dimension names, wheras 2011 and 2016 data will load with the historical dimension names. Each of these dimensions are imported for a variety of geographic levels (DA, CD, etc.) for the 2021, 2011 and 2016 administrations of the census. These data sets contribute to community analysis of equity with respect to Ontario's Anti-Racism Act. The Ontario Marginalization Index data is retrieved from the Public Health Ontario website: <https://www.publichealthontario.ca/en/data-and-analysis/health-equity/ontario-marginalization-index>. The shapefile data is retrieved from the Statistics Canada website: <https://www12.statcan.gc.ca/census-recensement/2011/geo/bound-limit/bound-limit-eng.cfm>.

onmaRg Library

Purpose

onmaRg is an R library that takes care of loading and merging Ontario Marginalization data. This includes functions for automatically creating dataframes containing marginalization data joined with geographic data, allowing the spatial analysis of this data to be more accessible.

onmaRg takes all of it's data directly off of the government websites and merges them into a dataframe without creating any permanant local files.

Background

The Ontario Marginalization Index is a data model that has been developed and maintained by Ontario Public Health and St. Michael's Hospital. This data model is constructed with the four domains of Residential Instability, Material Deprivation, Dependency and Ethnic Concentration which describe different aspects of marginalization that is experienced by communities. This data is available as a decimal, as well as in quintiles from 1 to 5 (5 being the highest level of that measurement, e.g.: deprivation 5 is the highest level of deprivation).

Statistics Canada has a database shapefiles on the geographic boundaries of all of Canada. This includes many levels that can go as precisely as Dissemination Areas.

onmaRg draws from both of these sources to create a shapefile that also contains marginalization data for each mapped space. This makes it much easier to work with this data and represent it visually, automating the process of downloading the different files, cleaning them and joining them together in a format that can be analyzed.

In addition, onmaRg also calculates an index score based on the five quintiles as an overall average score between each dimension.

Available Data

The Ontario Marginalization Index has released marginalization information on several levels every five years starting in 2001.

onmaRg can retrieve data from the following years:

  • 2011
  • 2016
  • 2021 - Pending

onmaRg can retrieve data from the following levels:

  • DAUID
  • CTUID
  • CSDUID
  • CCSUID
  • CDUID
  • CMAUID
  • PHUUID
  • LHINUID
  • LHIN_SRUID

onmaRg will be updated every time a new dataset comes out to keep it relevant. The years 2001 and 2006 have been excluded due to differences in formatting, but will be made available in future versions.

Usage

The shapeMarg() function is used to download the data into a variable - simply put in the year of data requested and the level of precision. This example will showcase how to use the package to quickly make a geographic plot of material deprivation data:

library(onmaRg)
library(ggplot2)
library(sf)

# Loads OnMarg data from 2016 on the DA level
DA_2016 <- shapeMarg(2016, "DAUID")

# Plots the material deprivation quintile scores
ggplot() +
    geom_sf(data=DA_2016, aes(fill=DEPRIVATION_Q_DA16)) +
    coord_sf()

Metadata

Version

1.0.3

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows