I recently gave a presentation for analysts and data modellers at the Department for Work and Pensions (DWP) introducing the spatial microsimulation technique (specifically the IPF flavour), and below are the slides I used (use spacebar to navigate through the slides): Much of the content is based on material from Spatial Microsimulation with R by Robin Lovelace and Morgane Dumont (online content | physical book) and my own rakeR package for R.
Code · GIS · rstats geometry · gis · polygons · simplify
When simplifying polygons it’s almost inevitable that you will generate some slither polygons or gaps between the correct polygons. For example, the following image shows two adjoining complex polygons, representing two adjoining administrative areas. Note there are no gaps between the polygons; they are contiguous (the border is between Sheffield and Barnsley LADs, by the way).Original geometries without simplification Now if we simplify these polygons to reduce their complexity using simplify geometries in QGIS, gaps appear between the original two polygons and they are no longer contiguous.
Code · GIS · Works hackathon · house prices · open data · visualisation · visualization
Code · rstats · Works CRAN · ipf · raking · rstats · spatial microsimulation
I’m proud to announce the initial release of rakeR, v0.1.1, has been published on CRAN! It’s licensed under the GPLv3 so you can use it for any projects you wish. Purpose The goal behind rakeR is to make performing spatial microsimulation in R as easy as possible. R is a succinct and expressive language, but previously performing spatial microsimulation required multiple stages, including weighting, integerising, expanding, and subsetting. This doesn’t even include testing inputs and outputs, and validation of the results.
Code · GIS · Research Methods · rstats deprivation · gis · interactive map · leaflet · shiny · Townsend
This week I updated my Townsend Material Deprivation Score project. The update makes townsendr an interactive online map of deprivation that users can simply view in their browser, rather than having to download and run the R code or view only static maps. I think the result is much more intuitive and useful. Making the map interactive is achieved by using Shiny, a technology for R to make interactive charts and plots.
Code linux · mac · macbook air · os x · ubuntu
Below are simply my notes on installing Ubuntu 16.04 “Xenial” on a Macbook Air as I couldn’t find one clear and/or up-to-date source. My Macbook is a mid-2011 (4,2) so your mileage may vary if you have a different model. NB: If you try to follow these instructions you do so at your own risk; I make no guarantees that these instructions work or even that they won’t brick your Macbook.
« Newer Older »