plot_diagnostics: Diagnostic Plots for Censored Data Schemes

View source: R/plots.R

plot_diagnosticsR Documentation

Diagnostic Plots for Censored Data Schemes

Description

Produces 3 diagnostic plots (Histogram with PDF overlay, Dot plot, and ACF plot) to verify sample distributional properties and independence.

Usage

plot_diagnostics(data, pdf = NULL, main = "Censoring Diagnostic Plots")

Arguments

data

Object of class comp_risk_rel_data or a numeric vector of failure times.

pdf

Optional probability density function to overlay on histogram.

main

Overall plot title.

Value

No return value, called for side effects (renders diagnostic plots).

Examples

dat <- 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
)
plot_diagnostics(dat, pdf = function(x) dexp(x, rate = 1))

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