% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spatial_cce.R
\name{.spatial_validate_W}
\alias{.spatial_validate_W}
\title{Validate and normalise a spatial weight matrix}
\usage{
.spatial_validate_W(W, units)
}
\arguments{
\item{W}{A numeric matrix (N x N).}

\item{units}{Character vector of unit identifiers in the panel, used
both for dimension checks and for aligning rows/columns.}
}
\value{
A row-normalised matrix with zero diagonal.
}
\description{
Validate and normalise a spatial weight matrix
}
\keyword{internal}
