Skip to content

Commit

Permalink
Change LR to LM
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdamoses committed Jul 4, 2023
1 parent 741f5f9 commit 3b7224e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/SFEMethod-multivariate.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ multispati_rsp <- function(x, listw, nfposi = 30L, nfnega = 30L, scale = TRUE) {
stop("listw must be either a listw object or an adjacency matrix.")
covar <- t(x) %*% (W + t(W)) %*% x / (2*nrow(x))
if (nfnega == 0L) {
res <- eigs_sym(covar, k = nfposi, which = "LR")
res <- eigs_sym(covar, k = nfposi, which = "LM")
} else if (nfposi == 0L) {
res <- eigs_sym(covar, k = nfnega, which = "SR")
res <- eigs_sym(covar, k = nfnega, which = "SM")
} else {
nf <- max(nfposi, nfnega)
res <- eigs_sym(covar, k = 2*nf, which = "BE")
Expand Down

0 comments on commit 3b7224e

Please sign in to comment.