
Last chance! 50% off unlimited learning
Sale ends in
lee.mc(x, y, listw, nsim, zero.policy=NULL, alternative="greater",
na.action=na.fail, spChk=NULL, return_boot=FALSE)
listw
object created for example by nb2listw
na.fail
), can also be na.omit
or na.exclude
- in these cases the weights list will be subsetted to remove NAs in the data. It may be necessary to set zero.policy to TRUE because this subsetting maget.spChkOption()
boot
from the equivalent permutation bootstrap rather than an object of class htest
htest
and mc.sim
containing the following components:lee
data(boston)
lw<-nb2listw(boston.soi)
x<-boston.c$CMEDV
y<-boston.c$CRIM
lee.mc(x, y, nsim=99, lw, zero.policy=TRUE, alternative="less")
#Test with missing values
x[1:5]<-NA
y[3:7]<-NA
lee.mc(x, y, nsim=99, lw, zero.policy=TRUE, alternative="less",
na.action=na.omit)
Run the code above in your browser using DataLab