% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/centrality.R
\name{centrality_within_module_z}
\alias{centrality_within_module_z}
\title{Within-Module Degree Z-Score}
\usage{
centrality_within_module_z(x, membership = NULL, mode = "all", ...)
}
\arguments{
\item{x}{Network input (matrix, igraph, network, cograph_network, tna object).}

\item{membership}{Integer vector of community assignments (one per node).}

\item{mode}{For directed networks: \code{"all"} (default), \code{"in"}, or
\code{"out"}.}

\item{...}{Additional arguments passed to \code{\link{centrality}}.}
}
\value{
Named numeric vector of within-module z-score values.
}
\description{
Z-score of intra-community connectivity. High values indicate hubs
within their own community. Requires community membership.
}
\examples{
adj <- matrix(c(0,1,1,0,0, 1,0,1,0,0, 1,1,0,1,0, 0,0,1,0,1, 0,0,0,1,0), 5, 5)
rownames(adj) <- colnames(adj) <- LETTERS[1:5]
centrality_within_module_z(adj, membership = c(1, 1, 1, 2, 2))
}
\seealso{
\code{\link{centrality}} for computing multiple measures at once,
\code{\link{centrality_participation}} for between-community diversity.
}
