aple.mc {spdep} | R Documentation |
A permutation bootstrap test for the approximate profile-likelihood estimator (APLE).
aple.mc(x, listw, nsim, override_similarity_check=FALSE, useTrace=TRUE)
x |
a zero-mean detrended continuous variable |
listw |
a |
nsim |
number of simulations |
override\_similarity\_check |
default FALSE, if TRUE - typically for row-standardised weights with asymmetric underlying general weights - similarity is not checked |
useTrace |
default TRUE, use trace of sparse matrix |
A boot
object as returned by the boot
function.
Roger Bivand Roger.Bivand@nhh.no
Li, H, Calder, C. A. and Cressie N. A. C. (2007) Beyond Moran's I: testing for spatial dependence based on the spatial autoregressive model. Geographical Analysis 39, 357-375; Li, H, Calder, C. A. and Cressie N. A. C. (2010) One-step estimation of spatial dependence parameters: Properties and extensions of the APLE statistic, Technical Report No. 846, Department of Statistics, The Ohio State University, Columbus, OH.
## Not run: example(aple) boot_out <- aple.mc(as.vector(scale(wheat$yield_detrend, scale=FALSE)), nb2listw(nbr12, style="W"), nsim=500) plot(boot_out) boot_out ## End(Not run)