% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ccd.R
\name{ccd}
\alias{ccd}
\title{Coupling Coordination Degree (CCD)}
\usage{
ccd(data, weight = NULL, method = c("standard", "wang", "fan"), threads = 1)
}
\arguments{
\item{data}{A numeric matrix or data.frame. Rows are observations,
columns are indicators.}

\item{weight}{Numeric vector of indicator weights. Must have length equal
to \code{ncol(data)}. If \code{NULL}, equal weights are used.}

\item{method}{Coupling model. One of \code{"standard"}, \code{"wang"}, or \code{"fan"}.}

\item{threads}{Number of threads used in computation.}
}
\value{
A data.frame with:
\itemize{
\item \code{C}: coupling degree
\item \code{D}: coordination degree
}
}
\description{
Coupling Coordination Degree (CCD)
}
\details{
Full model definitions and formulas are available at:
\url{https://github.com/stscl/coupling/discussions/3}
}
\note{
Input values should be normalized to \verb{[0, 1]}.
}
\examples{
set.seed(42)
mat = matrix(runif(20), nrow = 5)
coupling::ccd(mat)

}
