R/transb.R

#' Transitivity blockmodel with complete diagonal blocks
#'
#' @description Transitivity blockmodel with complete diagonal blocks.
#' @param nbl Number of clusters.
#' @author Marjan Cugmas
#' @export

transb <- function (nbl){
  B.transb <- array(NA, dim = c(1, 1, nbl, nbl))
  B.transb[1, 1, , ] <- matrix("null", nrow = nbl, ncol = nbl)
  B.transb[1, 1, , ][lower.tri(B.transb[1, 1, , ], diag = TRUE)] <- "com"
  return(B.transb)
}

Try the nem package in your browser

Any scripts or data that you put into this service are public.

nem documentation built on April 23, 2021, 3 p.m.