% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen_data.R
\name{gen_type1_hybrid}
\alias{gen_type1_hybrid}
\title{Generate Data under Type-I Hybrid Censoring Scheme}
\usage{
gen_type1_hybrid(pdf, cdf, lower = 0, upper = Inf, n, r, T_star, seed = NULL)
}
\arguments{
\item{pdf}{Probability density function.}

\item{cdf}{Cumulative distribution function.}

\item{lower}{Lower bound of the support of the distribution.}

\item{upper}{Upper bound of the support of the distribution.}

\item{n}{Total sample size.}

\item{r}{Minimum required number of failures.}

\item{T_star}{Fixed termination time.}

\item{seed}{Optional integer random seed for reproducibility.}
}
\value{
A list containing:
\item{observed_times}{Vector of observed failure/censoring times.}
\item{censor_status}{Binary indicator (1 for failure, 0 for censored at T_star).}
\item{n_failures}{Number of observed failures.}
\item{termination_time}{Effective termination time of the test.}
\item{scheme}{Character string indicating censoring scheme.}
}
\description{
Generate Data under Type-I Hybrid Censoring Scheme
}
\examples{
gen_type1_hybrid(
  pdf = function(x) dexp(x, rate = 1),
  cdf = function(x) pexp(x, rate = 1),
  lower = 0, upper = 10, n = 20, r = 10,
  T_star = 1.5, seed = 123
)
}
