% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reliability.R
\name{network_reliability}
\alias{network_reliability}
\title{Split-Half Reliability for Network Estimates}
\usage{
network_reliability(
  ...,
  iter = 1000L,
  split = 0.5,
  scale = "none",
  seed = NULL
)
}
\arguments{
\item{...}{One or more \code{netobject}s (from \code{\link{build_network}}).
If unnamed, each model is auto-named from its \code{$method}.
A \code{netobject_group} is flattened into its constituent models.}

\item{iter}{Integer. Number of split-half iterations (default: 1000).}

\item{split}{Numeric. Fraction of sequences assigned to the first half
(default: 0.5).}

\item{scale}{Character. Scaling applied to both split-half matrices
before computing metrics. One of \code{"none"} (default),
\code{"minmax"}, \code{"standardize"}, or \code{"proportion"}.
Use scaling when comparing models on different scales (e.g. frequency
vs relative).}

\item{seed}{Integer or NULL. RNG seed for reproducibility.}
}
\value{
An object of class \code{"net_reliability"} containing:
\describe{
\item{iterations}{Data frame with columns \code{model}, \code{mean_dev},
\code{median_dev}, \code{cor}, \code{max_dev} (one row per iteration
per model).}
\item{summary}{Data frame with columns \code{model}, \code{metric},
\code{mean}, \code{sd}.}
\item{models}{Named list of the original \code{netobject}s.}
\item{iter}{Number of iterations.}
\item{split}{Split fraction.}
\item{scale}{Scaling method used.}
}
}
\description{
Assesses the stability of network estimates by repeatedly splitting
sequences into two halves, building networks from each half, and
comparing them. Supports single-model reliability assessment and
multi-model comparison with optional scaling for cross-method
comparability.

For transition methods (\code{"relative"}, \code{"frequency"},
\code{"co_occurrence"}), uses pre-computed per-sequence count matrices
for fast resampling (same infrastructure as
\code{\link{bootstrap_network}}).
}
\examples{
net <- build_network(data.frame(V1 = c("A","B","C","A"),
  V2 = c("B","C","A","B")), method = "relative")
rel <- network_reliability(net, iter = 10)
\donttest{
seqs <- data.frame(
  V1 = sample(LETTERS[1:4], 30, TRUE), V2 = sample(LETTERS[1:4], 30, TRUE),
  V3 = sample(LETTERS[1:4], 30, TRUE), V4 = sample(LETTERS[1:4], 30, TRUE)
)
net <- build_network(seqs, method = "relative")
rel <- network_reliability(net, iter = 100, seed = 42)
print(rel)
}

}
\seealso{
\code{\link{build_network}}, \code{\link{bootstrap_network}}
}
