% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pvalues.R
\name{pvalue_distribution_free}
\alias{pvalue_distribution_free}
\title{Compute Distribution-Free p-values for Simple Hypotheses}
\usage{
pvalue_distribution_free(
  u_obs,
  n,
  r,
  censoring = c("right", "left"),
  nsim = 2000,
  seed = NULL
)
}
\arguments{
\item{u_obs}{Observed order statistics u_1:n < ... < u_r:n.}

\item{n}{Total sample size.}

\item{r}{Number of observed failures.}

\item{censoring}{Type of censoring: \code{"right"} or \code{"left"}.}

\item{nsim}{Number of Monte Carlo simulation replicates (default 2000).}

\item{seed}{Optional random seed.}
}
\value{
Named numeric vector of empirical p-values for each statistic.
}
\description{
Obtains p-values for EDF goodness-of-fit statistics via Monte Carlo simulation
from Uniform(0,1) order statistics.
}
