|
|
xi | |
|
|
xvii | |
|
|
xix | |
Introduction |
|
xxi | |
Statement by the American Statistical Association on statistical significance and p-value -- use in the book |
|
xxiii | |
Acknowledgements |
|
xxv | |
|
1 Basic operations in the R software |
|
|
1 | (36) |
|
|
|
1 | (1) |
|
1.2 The R software interface |
|
|
1 | (3) |
|
|
2 | (1) |
|
|
3 | (1) |
|
|
4 | (3) |
|
|
7 | (2) |
|
1.5 R language - basic features |
|
|
9 | (1) |
|
1.6 Defining and loading data |
|
|
9 | (2) |
|
1.7 Basic operations on objects |
|
|
11 | (7) |
|
1.8 Basic statistics of the dataset |
|
|
18 | (6) |
|
|
24 | (7) |
|
1.9.1 Scatterplot And Line Chart |
|
|
24 | (3) |
|
|
27 | (2) |
|
|
29 | (1) |
|
|
29 | (2) |
|
1.10 Regression in examples |
|
|
31 | (6) |
|
2 Data, spatial classes and basic graphics |
|
|
37 | (50) |
|
|
2.1 Loading and basic operations on spatial vector data |
|
|
37 | (11) |
|
2.2 Creating, checking and converting spatial classes |
|
|
48 | (5) |
|
2.3 Selected colour palettes |
|
|
53 | (4) |
|
2.4 Basic contour maps with a colour layer |
|
|
57 | (5) |
|
Scheme 1 With Colorramppalette() From The Grdevices:: Package |
|
|
57 | (1) |
|
Scheme 2 With Choropleth() From The Gistools:: Package |
|
|
58 | (1) |
|
Scheme 3 With Findlnterval() From The Base:: Package |
|
|
59 | (1) |
|
Scheme 4 With Findcolours() From The ClassInt:: Package |
|
|
60 | (1) |
|
Scheme 5 With Spplot() From The Sp:: Package |
|
|
61 | (1) |
|
2.5 Basic operations and graphs for point data |
|
|
62 | (5) |
|
Scheme 1 With Points() From The Graphics:: Package -- Locations Only |
|
|
62 | (1) |
|
Scheme 2 With Spplot() From The Sp:: Package - Locations And Values |
|
|
63 | (1) |
|
Scheme 3 With Findinterval() From The Base:: Package -- Locations, Values, Different Size Of Symbols |
|
|
64 | (3) |
|
2.6 Basic operations on rasters |
|
|
67 | (6) |
|
2.7 Basic operations on grids |
|
|
73 | (7) |
|
|
80 | (7) |
|
3 Spatial data with Web APIs |
|
|
87 | (64) |
|
|
|
3.1 What is an application programming interface (API)? |
|
|
87 | (1) |
|
3.2 Creating background maps with use of an application programming interface |
|
|
88 | (14) |
|
3.3 Ways to visualise spatial data -- maps for point and regional data |
|
|
102 | (8) |
|
Scheme 1 With Bubblemap() From The Rgooglemaps:: Package |
|
|
102 | (2) |
|
Scheme 2 With Ggmap() From The Ggmap:: Package |
|
|
104 | (5) |
|
Scheme 3 With Plotonstaticmap() From The Rgooglemaps:: Package |
|
|
109 | (1) |
|
Scheme 4 With Rgooglemaps:: Getmap() And Conversion Of Staticmap Into A Raster |
|
|
109 | (1) |
|
3.4 Spatial data in vector format -- example of the OSM database |
|
|
110 | (7) |
|
3.5 Access to non-spatial internet databases and resources via application programming interface -- examples |
|
|
117 | (16) |
|
|
133 | (18) |
|
4 Spatial weights matrix, distance measurement, tessellation, spatial statistics |
|
|
151 | (62) |
|
|
|
4.1 Introduction to spatial data analysis |
|
|
151 | (2) |
|
4.2 Spatial weights matrix |
|
|
153 | (21) |
|
4.2.1 General Framework For Creating Spatial Weights Matrices |
|
|
153 | (2) |
|
4.2.2 Selection Of A Neighbourhood Matrix |
|
|
155 | (1) |
|
4.2.3 Neighbourhood Matrices According To The Contiguity Criterion |
|
|
156 | (3) |
|
4.2.4 Matrix Of K Nearest Neighbours (Knn) |
|
|
159 | (2) |
|
4.2.5 Matrix Based On Distance Criterion (Neighbours In A Radius Of D Km) |
|
|
161 | (2) |
|
4.2.6 Inverse Distance Matrix |
|
|
163 | (1) |
|
4.2.7 Summarising And Editing Spatial Weights Matrix |
|
|
164 | (5) |
|
4.2.8 Spatial Lags And Higher-Order Neighbourhoods |
|
|
169 | (1) |
|
4.2.9 Creating Weights Matrix Based On Group Membership |
|
|
170 | (1) |
|
|
170 | (3) |
|
|
173 | (1) |
|
4.3 Distance Measurement And Spatial Aggregation |
|
|
174 | (8) |
|
|
177 | (5) |
|
|
182 | (3) |
|
|
185 | (21) |
|
|
188 | (1) |
|
4.5.1.1 Global Moran's L Statistics |
|
|
188 | (6) |
|
4.5.1.2 Global Geary's C Statistics |
|
|
194 | (1) |
|
4.5.1.3 Join-Count Statistics |
|
|
195 | (4) |
|
4.5.2 Local Spatial Autocorrelation Statistics |
|
|
199 | (1) |
|
4.5.2.2 Local Moran's L Statistics (Local Indicator Of Spatial Association) |
|
|
199 | (2) |
|
4.5.2.3 Local Geary's C Statistics |
|
|
201 | (1) |
|
4.5.2.4 Local Getis-Ord Gi Statistics |
|
|
202 | (1) |
|
4.5.2.5 Local Spatial Heteroscedasticity |
|
|
203 | (3) |
|
4.6 Spatial cross-correlations for two variables |
|
|
206 | (2) |
|
|
208 | (5) |
|
5 Applied spatial econometrics |
|
|
213 | (76) |
|
|
5.1 Added value from spatial modelling and classes of models |
|
|
213 | (3) |
|
5.2 Basic cross-sectional models |
|
|
216 | (30) |
|
|
216 | (3) |
|
|
219 | (11) |
|
5.2.2 Quality Assessment Of Spatial Models |
|
|
230 | (1) |
|
5.2.2.1 Information Criteria And Pseudo-R2 In Assessing Model Fit |
|
|
230 | (2) |
|
5.2.2.2 Test For Heteroscedasticity Of Model Residuals |
|
|
232 | (2) |
|
5.2.2.3 Residual Autocorrelation Tests |
|
|
234 | (2) |
|
5.2.2.4 Lagrange Multiplier Tests For Model Type Selection |
|
|
236 | (2) |
|
5.2.2.5 Likelihood Ratio And Wald Tests For Model Restrictions |
|
|
238 | (2) |
|
5.2.3 Selection Of Spatial Weights Matrix And Modelling Of Diffusion Strength |
|
|
240 | (3) |
|
5.2.4 Forecasts In Spatial Models |
|
|
243 | (2) |
|
|
245 | (1) |
|
5.3 Selected specifications of cross-sectional spatial models |
|
|
246 | (28) |
|
5.3.1 Unidirectional Spatial Interaction Models |
|
|
246 | (9) |
|
|
255 | (6) |
|
5.3.3 Bootstrapped Models For Big Data |
|
|
261 | (1) |
|
|
261 | (8) |
|
5.3.4 Models For Grid Data |
|
|
269 | (1) |
|
|
269 | (5) |
|
|
274 | (15) |
|
|
278 | (11) |
|
6 Geographically Weighted Regression - Modelling Spatial Heterogeneity |
|
|
289 | (34) |
|
|
6.1 Geographically weighted regression |
|
|
289 | (2) |
|
6.2 Basic estimation of geographically weighted regression model |
|
|
291 | (17) |
|
6.2.1 Estimation Of The Reference Ordinary Least Squares Model |
|
|
291 | (1) |
|
6.2.2 Choosing The Optimal Bandwidth For A Dataset |
|
|
292 | (3) |
|
6.2.3 Local Geographically Weighted Statistics |
|
|
295 | (2) |
|
6.2.4 Geographically Weighted Regression Estimation |
|
|
297 | (1) |
|
6.2.5 Basic Diagnostic Tests Of The Geographically Weighted Regression Model |
|
|
298 | (6) |
|
6.2.6 Testing The Significance Of Parameters In Geographically Weighted Regression |
|
|
304 | (1) |
|
6.2.7 Selection Of The Optimal Functional Form Of The Model |
|
|
305 | (2) |
|
6.2.8 Geographically Weighted Regression With Heteroscedastic Random Error |
|
|
307 | (1) |
|
6.3 The problem of collinearity in geographically weighted regression models |
|
|
308 | (8) |
|
6.3.1 Diagnosing Collinearity In Geographically Weighted Regression |
|
|
308 | (8) |
|
6.4 Mixed geographically weighted regression |
|
|
316 | (2) |
|
6.5 Robust regression in the geographically weighted regression model |
|
|
318 | (1) |
|
6.6 Geographically and temporally weighted regression |
|
|
319 | (4) |
|
7 Spatial unsupervised learning |
|
|
323 | (48) |
|
|
7.1 Clustering of spatial points with k-means, PAM (partitioning around medoids) and CLARA (clustering large applications) algorithms |
|
|
323 | (13) |
|
|
326 | (7) |
|
|
333 | (3) |
|
7.2 Clustering With The Density-Based Spatial Clustering Of Applications With Noise Algorithm |
|
|
336 | (9) |
|
|
337 | (8) |
|
7.3 Spatial Principal Component Analysis |
|
|
345 | (4) |
|
|
346 | (3) |
|
|
349 | (7) |
|
|
349 | (7) |
|
7.5 Spatial Hierarchical Clustering |
|
|
356 | (8) |
|
|
358 | (4) |
|
|
362 | (2) |
|
7.6 Spatial Oblique Decision Tree |
|
|
364 | (7) |
|
|
364 | (7) |
|
8 Spatial Point Pattern Analysis And Spatial Interpolation |
|
|
371 | (62) |
|
|
8.1 Introduction and main definitions |
|
|
373 | (13) |
|
|
373 | (1) |
|
8.1.2 Creation Of Window And Point Pattern |
|
|
374 | (1) |
|
|
375 | (6) |
|
|
381 | (1) |
|
|
381 | (1) |
|
|
382 | (1) |
|
8.1.6 Projection And Rescaling |
|
|
383 | (3) |
|
8.2 Intensity-based analysis of unmarked point pattern |
|
|
386 | (5) |
|
|
387 | (1) |
|
8.2.2 Tests With Spatial Covariates |
|
|
388 | (3) |
|
8.3 Distance-based analysis of the unmarked point pattern |
|
|
391 | (7) |
|
8.3.1 Distance-Based Measures |
|
|
392 | (1) |
|
8.3.1.1 Ripley's K Function |
|
|
392 | (1) |
|
|
393 | (1) |
|
|
393 | (1) |
|
|
393 | (1) |
|
8.3.1.5 Distance-Based Complete Spatial Randomness Tests |
|
|
393 | (3) |
|
|
396 | (1) |
|
|
396 | (1) |
|
8.3.4 Non-Graphical Tests |
|
|
397 | (1) |
|
8.4 Selection and estimation of a proper model for unmarked point pattern |
|
|
398 | (6) |
|
|
399 | (1) |
|
8.4.2 Choice Of Parameters |
|
|
400 | (1) |
|
8.4.3 Estimation And Results |
|
|
401 | (3) |
|
|
404 | (1) |
|
8.5 Intensity-based analysis of marked point pattern |
|
|
404 | (1) |
|
|
404 | (1) |
|
8.6 Correlation and spacing analysis of the marked point pattern |
|
|
405 | (5) |
|
8.6.1 Analysis Under Assumption Of Stationarity |
|
|
405 | (1) |
|
8.6.1.1 K Function Variations For Multitype Pattern |
|
|
405 | (2) |
|
8.6.1.2 Mark Connection Function |
|
|
407 | (2) |
|
8.6.1.3 Analysis Of Within-And Between-Type Dependence |
|
|
409 | (1) |
|
8.6.1.4 Randomisation Test Of Components' Independence |
|
|
409 | (1) |
|
8.6.2 Analysis Under Assumption Of Non-Stationarity |
|
|
410 | (1) |
|
8.6.2.1 Inhomogeneous K Function Variations For Multitype Pattern |
|
|
410 | (1) |
|
8.7 Selection and estimation of a proper model for unmarked point pattern |
|
|
410 | (11) |
|
|
412 | (1) |
|
8.7.2 Choice Of Optimal Radius |
|
|
412 | (1) |
|
8.7.3 Within-Industry Interaction Radius |
|
|
412 | (2) |
|
8.7.4 Between-Industry Interaction Radius |
|
|
414 | (1) |
|
8.7.5 Estimation And Results |
|
|
415 | (1) |
|
8.7.6 Model With No Between-Industry Interaction |
|
|
415 | (3) |
|
8.7.7 Model With All Possible Interactions |
|
|
418 | (3) |
|
8.8 Spatial interpolation methods -- kriging |
|
|
421 | (12) |
|
|
421 | (3) |
|
8.8.2 Description Of Chosen Kriging Methods |
|
|
424 | (1) |
|
8.8.3 Data Preparation For The Study |
|
|
424 | (1) |
|
8.8.4 Estimation And Discussion |
|
|
425 | (8) |
|
9 Spatial sampling and bootstrapping |
|
|
433 | (44) |
|
|
|
9.1 Spatial point data - object classes and spatial aggregation |
|
|
434 | (3) |
|
9.2 Spatial sampling -- randomisation/generation of new points on the surface |
|
|
437 | (3) |
|
9.3 Spatial sampling -- sampling of sub-samples from existing points |
|
|
440 | (22) |
|
|
441 | (2) |
|
9.3.2 The Options Of The Sperrorest:: Package |
|
|
443 | (5) |
|
9.3.3 Sampling Points From Areas Determined By The K-Means Algorithm -- Block Bootstrap |
|
|
448 | (8) |
|
9.3.4 Sampling Points From Moving Blocks (Moving Block Bootstrap) |
|
|
456 | (6) |
|
9.4 Use of spatial sampling and bootstrapping in cross-validation of models |
|
|
462 | (15) |
|
|
462 | (15) |
|
|
477 | (40) |
|
|
10.1 Examples of big data applications |
|
|
478 | (1) |
|
|
478 | (3) |
|
10.2.1 Spatial Data Types |
|
|
479 | (1) |
|
10.2.2 Challenges Related To The Use Of Spatial Big Data |
|
|
479 | (1) |
|
10.2.2.1 Processing Of Large Datasets |
|
|
479 | (1) |
|
10.2.2.2 Mapping And Reduction |
|
|
480 | (1) |
|
10.2.2.3 Spatial Data Indexing |
|
|
480 | (1) |
|
10.3 The sd:: package -- simple features |
|
|
481 | (13) |
|
10.3.1 Sf Class -- A Special Data Frame |
|
|
481 | (1) |
|
10.3.2 Data With Polygon Geometry |
|
|
482 | (6) |
|
10.3.3 Data With Point Geometry |
|
|
488 | (1) |
|
10.3.4 Visualisation Using The Ggplot2:: Package |
|
|
489 | (1) |
|
10.3.5 Selected Functions For Spatial Analysis |
|
|
490 | (4) |
|
10.4 Use the dplyr:: package functions |
|
|
494 | (11) |
|
10.5 Sample analysis of large raster data |
|
|
505 | (12) |
|
10.5.1 Measurement Of Economic Inequalities From Space |
|
|
505 | (2) |
|
10.5.2 Analysis Using The Raster:: Package Functions |
|
|
507 | (7) |
|
10.5.3 Other Functions Of The Raster:: Package |
|
|
514 | (1) |
|
10.5.4 Potential Alternative -- Stars:: Package |
|
|
515 | (2) |
|
11 Spatial unsupervised learning --- applications of market basket analysis in geomarketing |
|
|
517 | (44) |
|
|
11.1 Introduction to market basket analysis |
|
|
517 | (1) |
|
11.2 Data needed in spatial market basket analysis |
|
|
518 | (2) |
|
|
520 | (6) |
|
11.4 The market basket analysis technique applied to geolocation data |
|
|
526 | (4) |
|
11.5 Spatial association rules |
|
|
530 | (4) |
|
11.6 Applications to geomarketing |
|
|
534 | (4) |
|
11.6.1 Finding The Best Location For A Business |
|
|
534 | (2) |
|
|
536 | (2) |
|
11.6.3 Discovery Of Competitors |
|
|
538 | (1) |
|
11.7 Conclusions and further approaches |
|
|
538 | (3) |
|
Appendix A Datasets used in examples |
|
|
541 | (14) |
|
A1 Dataset No. 1 / Dataset1/ -- Poviat Panel Data With Many Variables |
|
|
541 | (3) |
|
A2 Dataset No. 2 / Dataset2/ -- Geolocated Point Data |
|
|
544 | (4) |
|
A3 Dataset No. 3 / Dataset3/ -- Monthly Unemployment Rate In Poviats (Nts4) |
|
|
548 | (1) |
|
A4 Dataset No. 4 / Dataset4/ -- Grid Data For Population |
|
|
549 | (2) |
|
A5 Shapefiles Of Contour Maps -- For Poviats (Nts4), Regions (Nts2), Country (Nts0) And Registration Areas |
|
|
551 | (1) |
|
A6 Raster Data On Night Light Intensity On Earth In 2013 |
|
|
552 | (1) |
|
A7 Population In Cities In Poland |
|
|
553 | (2) |
|
Appendix B Links between packages |
|
|
555 | (6) |
References |
|
561 | (16) |
Index |
|
577 | |