1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| library(maptools)
library(spdep)
london<-readShapePoly("http://www.columbia.edu/~cjd11/charles_dimaggio/DIRE/resources/Spatial/LDNSuicides")
plot(london) # NB: no CRS
class(london)
names(london)
london$NAME
obs=c(75,145,99,168,152,173,152,169,130,117,124,119,134,90,
98,89,128,145,130,69,246,166,95,135,98,97,202,75,100,
100,153,194) # observerd number suicides each london borough
exp=c(80.7,169.8,123.2,139.5,169.1,107.2,179.8,160.4,147.5,
116.8,102.8,91.8,119.6,114.8,131.1,136.1,116.6,98.5,
88.8,79.8,144.9,134.7,98.9,118.6,130.6,96.1,127.1,97.7,
88.5,121.4,156.8,114) # expected number suicides each london borough
|