#'
#'
#'
#' Total resistance between nodes is evaluated by applying \code{\link[ResistorArray]{Wu}}
#' to the Laplacian matrix induced from the elementwise-inverse sociomatrix.
#'
#' @family nonlinear path strenghts
#'
sconduct <- function(sociomatrix){
resistance_matrix <- 1/sociomatrix
laplacian <- diag(apply(resistance_matrix,MARGIN = 1,sum)) - resistance_matrix
sconductivity <- 1/ResistorArray::Wu(resistance_matrix)
return(sconductivity)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.