% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pvalues.R
\name{pvalue_parametric_bootstrap}
\alias{pvalue_parametric_bootstrap}
\title{Compute Parametric Bootstrap p-values for Composite Hypotheses}
\usage{
pvalue_parametric_bootstrap(
  data,
  n,
  pdf,
  cdf,
  sf = NULL,
  params_hat,
  censoring = c("right", "left"),
  transform = c("both", "malmquist", "ms"),
  nsim = 2000,
  seed = NULL,
  optim_control = list()
)
}
\arguments{
\item{data}{Observed data vector of length r.}

\item{n}{Total sample size.}

\item{pdf}{Density function.}

\item{cdf}{Distribution function.}

\item{sf}{Survival function.}

\item{params_hat}{Estimated parameter list from observed data.}

\item{censoring}{Type of censoring.}

\item{transform}{Transformation method (\code{"ms"}, \code{"malmquist"}, or \code{"both"}).}

\item{nsim}{Number of bootstrap replicates (default 2000).}

\item{seed}{Optional random seed.}

\item{optim_control}{Optional control list passed to \code{optim}.}
}
\value{
A list containing empirical p-values and number of valid replicates.
}
\description{
Obtains p-values for composite hypothesis tests where parameters are estimated from data.
}
