% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers_ps_psweights.R
\name{calc_c_statistic}
\alias{calc_c_statistic}
\title{Calculate C-statistic (concordance) for PS model discrimination}
\usage{
calc_c_statistic(
  exposure_vec,
  ps_vec,
  weights_vec = NULL,
  label = "PS Model",
  verbose = TRUE
)
}
\arguments{
\item{exposure_vec}{Binary exposure vector (0/1)}

\item{ps_vec}{Propensity score vector}

\item{weights_vec}{Optional numeric weights vector (for post-weighting / post-matching c-stat)}

\item{label}{Character label printed in console (default "PS Model")}

\item{verbose}{Logical. Print progress messages (default TRUE).}
}
\value{
A list with elements \code{c_stat} (numeric) and \code{se} (numeric),
or NULL if survival is not available.
}
\description{
Uses \code{survival::concordance} which is O(n log n) and supports sample
weights natively.
}
\keyword{internal}
