Nothing
aple.plot <- function(x, listw, override_similarity_check=FALSE, useTrace=TRUE,
do.plot=TRUE, ...) {
pre <- preAple(x=x, listw=listw,
override_similarity_check=override_similarity_check, useTrace=useTrace)
W2e <- eigen(pre$W2)
SQRTW2 <- W2e$vectors %*% (diag(W2e$values^(0.5)) %*% t(W2e$vectors))
X <- drop(SQRTW2 %*% x)
NSQRTW2 <- W2e$vectors %*% (diag(W2e$values^(-0.5)) %*% t(W2e$vectors))
Y <- drop(NSQRTW2 %*% pre$WU %*% x)
if (do.plot) {
plot(X, Y, ...)
}
list(X=X, Y=Y)
}
localAple <- function(x, listw, override_similarity_check=FALSE, useTrace=TRUE) {
aplepl <- aple.plot(x, listw,
override_similarity_check=override_similarity_check,
useTrace=useTrace, do.plot=FALSE)
res <- (length(aplepl$X) * aplepl$Y * aplepl$X) / crossprod(aplepl$X)
res
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.