Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels...
Transcript of Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels...
![Page 1: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/1.jpg)
National Workshop Accra, Ghana
![Page 2: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/2.jpg)
• 21st district in Paris
• (only) statistical nerds
• OECD - DAC
![Page 3: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/3.jpg)
National & Regional • Strategic planning (NSDS & RSDA) • Advocacy • Data (e.g. micro-data dissemination)
Global • Co-ordination (BAPS, PRESS) • Knowledge sharing
![Page 4: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/4.jpg)
![Page 5: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/5.jpg)
Table 5: Total annual household expenditure by expense category (US$ 000)
Expense category Purchase Home
produced
1 - Food & non-alcoholic beverages 51042 24374
2 - Alcoholic beverages, tobacco & narcotics 5739 4774
3 - Clothing & footwear 3580 0 4 - Housing, water, electricity, gas & other fuels 18515 0
5 - Furnishings, equip & routine maintenance 4806 0
6 - Health 1030 0
7 - Transport 15212 0
8 - Communication 5236 0
9 - Recreation & culture 2939 0
10 - Education 4619 0
11 - Restaurants & hotels 2457 0
TOTAL CONSUMPTION EXPENDITURE 120063 29148
![Page 6: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/6.jpg)
0 20000 40000 60000 80000
Health
Restaurants & hotels
Recreation & culture
Clothing & footwear
Education
Furnishings, equip & routine maintenance
Miscellaneous goods & services
Communication
Alcoholic beverages, tobacco & narcotics
Transport
Housing, water, electricity, gas & other fuels
Food & non-alcoholic beverages
Purchases
Home producedes
6
![Page 7: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/7.jpg)
Source: ons.gov.uk/ons/interactive/
![Page 8: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/8.jpg)
1. Examples
2. Visualisation tools
3. R as interface
![Page 9: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/9.jpg)
1. Examples
![Page 10: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/10.jpg)
Source: neighbourhood.statistics.gov.uk/
![Page 11: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/11.jpg)
Source: destatis.de/EN/Service/Traffic/TrafficAccidents_Calendar
![Page 15: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/15.jpg)
• Note: good graphs are self-explanatory
The key to understand a graph should not be hidden somewhere in the text!
![Page 16: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/16.jpg)
2. Visualisation tools
![Page 17: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/17.jpg)
• What are we looking for in a viz software?
Quality output
o Vector graphics (SVG) vs PNG/JPEG
Interactive output
o JavaScript
“Free” (as in free beer)
Well documented
Convenient/ quick to learn
![Page 18: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/18.jpg)
Excel
Raw/
Datawrapper Tableau
D3.js/
Charts R
Quality O P P P P
Interactive O O P P P
Free O P O P P
Documentation P P P P (P)
Convenience P P P O (P)
Sources: raw.densitydesign.org / datawrapper.de tableau.com d3js.org r-project.org
![Page 19: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/19.jpg)
Source: developers.google.com/chart/interactive/docs/quick_start
![Page 20: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/20.jpg)
• Ajax code • R code ## read data
pizza = read.csv(“http://klein.uk/R/pizza.csv”)
## install googleVis package
install.packages(“googleVis”)
## create pie chart
library(googleVis)
pizza = gvisPieChart(pizza)
plot(pizza)
## find help
?gvisPieChart
![Page 21: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/21.jpg)
3. R as Interface
![Page 22: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/22.jpg)
• Many open source libraries googleVis
rCharts
rMaps
leaflet
htmlwidgets
plotly
• R combines the functionality of these packages in one interface
![Page 23: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/23.jpg)
![Page 24: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/24.jpg)
1. use your tools of choice for data manipulation and analysis
2. import into R from Excel, Stata, SAS, SPSS, … using R libraries ‘xlsx’ or ‘foreign’
3. produce graphics using code snippets available online
4. export in static format (SVG, PNG, JPG) or dynamic graphs (HTML, JavaScript)
5. embed in your reports and websites
![Page 25: Preparing the NSDS: The main steps - klein · 0 20000 40000 60000 80000 Health Restaurants & hotels Recreation & culture Clothing & footwear Education Furnishings, equip & routine](https://reader035.fdocuments.us/reader035/viewer/2022071010/5fc7fd189c958f5abe304b7b/html5/thumbnails/25.jpg)
• Good practices and workflow of statistical data analysis
• Hands-on group work
• Producing reports and blogs using knitr
• Next steps: finding help and resources