% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dpq_bootstrap.R
\name{dpq_bootstrap}
\alias{dpq_bootstrap}
\title{DP-Quantile Bootstrap for Time Series}
\usage{
dpq_bootstrap(x, R = 500, alpha = 1, seed = NULL)
}
\arguments{
\item{x}{Numeric vector. Original time series.}

\item{R}{Integer. Number of bootstrap replications.}

\item{alpha}{Positive numeric. Dirichlet concentration parameter.}

\item{seed}{Optional seed.}
}
\value{
A list containing bootstrap samples, mean series, quantiles and ranks.
}
\description{
Generate bootstrap time series using a Dirichlet-based quantile bootstrap
with rank-preserving reconstruction.
}
\examples{
x <- c(120, 125, 118, 130, 128, 135, 140, 138, 145, 150)
res <- dpq_bootstrap(x, R = 20, alpha = 1, seed = 123)
res$mean_series
dim(res$samples)

}
