EBImoran.mc(n, x, listw, nsim, zero.policy = NULL,
alternative = "greater", spChk=NULL, return_boot=FALSE,
subtract_mean_in_numerator=TRUE)
listw
object created for example by nb2listw
get.spChkOption()
boot
from the equivalent permutation bootstrap rather than an object of class htest
htest
and mc.sim
containing the
following components:moran
, moran.mc
, EBest
example(nc.sids)
EBImoran.mc(nc.sids$SID74, nc.sids$BIR74,
nb2listw(ncCC89_nb, style="B", zero.policy=TRUE), nsim=999, zero.policy=TRUE)
sids.p <- nc.sids$SID74 / nc.sids$BIR74
moran.mc(sids.p, nb2listw(ncCC89_nb, style="B", zero.policy=TRUE),
nsim=999, zero.policy=TRUE)
Run the code above in your browser using DataLab