gen_gen_prog_hybrid: Generate Data under Generalized Progressive Hybrid Censoring...

View source: R/gen_data.R

gen_gen_prog_hybridR Documentation

Generate Data under Generalized Progressive Hybrid Censoring Scheme

Description

Generate Data under Generalized Progressive Hybrid Censoring Scheme

Usage

gen_gen_prog_hybrid(
  pdf,
  cdf,
  lower = 0,
  upper = Inf,
  n,
  m,
  k,
  T_star,
  R_plan,
  seed = NULL
)

Arguments

pdf

Probability density function.

cdf

Cumulative distribution function.

lower

Lower bound of support.

upper

Upper bound of support.

n

Total sample size.

m

Target number of failures.

k

Threshold failure count.

T_star

Termination time limit.

R_plan

Progressive censoring plan vector of length m.

seed

Optional integer random seed for reproducibility.

Value

A list containing observed failure times, progressive removal plan, and censoring details.

Examples

gen_gen_prog_hybrid(
  pdf = function(x) dexp(x, rate = 1),
  cdf = function(x) pexp(x, rate = 1),
  lower = 0, upper = 10, n = 20, m = 10,
  k = 5, T_star = 1.2, R_plan = rep(1, 10),
  seed = 123
)

CompRiskRel documentation built on Aug. 5, 2026, 9:08 a.m.