Last chance! 50% off unlimited learning
Sale ends in
plot.mc.sim
is a helper function to plot the outcomes of the
permutation test.sp.mantel.mc(var, listw, nsim, type = "moran", zero.policy = FALSE,
alternative = "greater", spChk=NULL)
plot.mc.sim(x, xlim, xlab, main, sub, ..., ptype="density")
listw
object created for example by nb2listw
get.spChkOption()
htest
and mc.sim
containing the following components:mantel()
function
is in the vegan package.moran.mc
, joincount.mc
,
geary.mc
data(oldcol)
sim1 <- sp.mantel.mc(COL.OLD$CRIME, nb2listw(COL.nb),
nsim=99, type="geary", alternative="less")
sim1
plot(sim1)
sp.mantel.mc(COL.OLD$CRIME, nb2listw(COL.nb), nsim=99,
type="sokal", alternative="less")
sp.mantel.mc(COL.OLD$CRIME, nb2listw(COL.nb), nsim=99,
type="moran")
Run the code above in your browser using DataLab