data(nc.sids)
EBImoran.mc(spNamedVec("SID74", nc.sids), spNamedVec("BIR74", nc.sids),
nb2listw(sidsorig.nb, style="B", zero.policy=TRUE), nsim=999,
zero.policy=TRUE)
sids.p <- nc.sids$SID74 / nc.sids$BIR74
names(sids.p) <- rownames(nc.sids)
moran.mc(sids.p, nb2listw(sidsorig.nb, style="B", zero.policy=TRUE),
nsim=999, zero.policy=TRUE)
Run the code above in your browser using DataLab