% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pit.R
\name{pit_test}
\alias{pit_test}
\alias{pit_test.default}
\alias{pit_test.dcvar_model_fit}
\title{KS test for PIT uniformity}
\usage{
pit_test(object, ...)

\method{pit_test}{default}(object, ...)

\method{pit_test}{dcvar_model_fit}(object, ...)
}
\arguments{
\item{object}{A fitted model object.}

\item{...}{Additional arguments (unused).}
}
\value{
A data frame with columns \code{variable}, \code{ks_statistic}, \code{p_value}, \code{n}.
}
\description{
Runs a Kolmogorov-Smirnov test per variable to assess whether PIT values
are approximately uniform. This is a heuristic check on the plug-in PIT
values returned by \code{\link[=pit_values]{pit_values()}}, not an exact posterior predictive test.
}
\details{
This applies a Kolmogorov-Smirnov test to the approximate PIT values
returned by \code{\link[=pit_values]{pit_values()}}. The result is a heuristic check and does not
account for serial dependence or full posterior uncertainty. PIT tests are
currently implemented for single-level fits only.
}
