% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diagnostics.R
\name{htdv_ppc}
\alias{htdv_ppc}
\title{Posterior-Predictive Checks on Dependence Statistics}
\usage{
htdv_ppc(fit, x_obs, lag_max = 10L)
}
\arguments{
\item{fit}{An \code{htdv_fit} object whose posterior-predictive replicates
are stored as parameter \code{x_rep}.}

\item{x_obs}{The observed data vector.}

\item{lag_max}{Maximum lag for autocorrelation.}
}
\value{
A list with \code{p_acf}, \code{p_ljung_box}, \code{p_spectral},
  \code{p_hurst}.
}
\description{
Replicates autocorrelation, Ljung-Box, spectral discrepancy, and a
detrended-fluctuation Hurst exponent under the posterior and computes
posterior-predictive \code{p}-values.
}
\examples{
\donttest{
x <- rnorm(50)
fit <- htdv_fit(x, model = "tac", chains = 2, iter = 500,
                refresh = 0, seed = 1)
htdv_ppc(fit, x)
}

}
