Package: AHTauDesign
Type: Package
Title: Truncation Time Selection for Average Hazard Analyses
Version: 0.1.0
Authors@R: c(
      person("Xinyue", "Zhao", email = "xinyuezhao27@gwu.edu", role = c("aut", "cre")),
      person("Haitao", "Pan", email = "Haitao.Pan@STJUDE.ORG", role = "aut")
    )
Description: 
    Implements a two-stage, design-informed framework for selecting the
    truncation time in time-to-event trials analyzed with the average hazard
    estimand, motivated by pediatric oncology settings with small samples,
    slow accrual, and limited follow-up. Stage 1 validates a clinically
    proposed truncation time against the planned design using simulation-based
    diagnostics for risk-set support, follow-up coverage, estimability, and
    estimator stability, classifying it as Pass, Borderline, or Fail. Stage 2
    performs constrained optimization over a grid of candidate truncation
    times within a clinical-distance window, maximizing a utility subject to
    feasibility constraints, with an independent evaluation run to assess
    the selected time. Supports proportional-hazards, early-, and delayed-effect
    patterns, uniform accrual with administrative censoring, and
    calibrated exponential random censoring.
License: GPL-3
Encoding: UTF-8
Depends: R (>= 4.1.0)
Imports: survival, stats, utils
Suggests: ggplot2, knitr, rmarkdown
VignetteBuilder: knitr
Config/roxygen2/version: 8.0.0
NeedsCompilation: no
Packaged: 2026-08-25 04:01:27 UTC; xinyueyue
Author: Xinyue Zhao [aut, cre],
  Haitao Pan [aut]
Maintainer: Xinyue Zhao <xinyuezhao27@gwu.edu>
Repository: CRAN
Date/Publication: 2026-09-10 08:40:08 UTC
