Package: miniPCH 0.4.0

Tobias Fellinger

miniPCH: Survival Distributions with Piece-Wise Constant Hazards

Density, distribution function, ... hazard function, cumulative hazard function, survival function for survival distributions with piece-wise constant hazards and multiple states and methods to plot and summarise those distributions. A derivation of the used algorithms can be found in my masters thesis <doi:10.25365/thesis.76098>.

Authors:Tobias Fellinger [aut, cre], Florian Klinglmueller [aut]

miniPCH_0.4.0.tar.gz
miniPCH_0.4.0.tar.gz(r-4.5-noble)miniPCH_0.4.0.tar.gz(r-4.4-noble)
miniPCH_0.4.0.tgz(r-4.4-emscripten)miniPCH_0.4.0.tgz(r-4.3-emscripten)
miniPCH.pdf |miniPCH.html
miniPCH/json (API)
NEWS

# Install 'miniPCH' in R:
install.packages('miniPCH', repos = 'https://cloud.r-project.org')

Bug tracker:https://github.com/simnph/minipch/issues1 issues

Pkgdown site:https://simnph.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library

On CRAN:

Conda:

openblascppopenmp

2.18 score 1 packages 504 downloads 26 exports 4 dependencies

Last updated 5 months agofrom:7808af639a. Checks:2 OK, 1 NOTE. Indexed: no.

TargetResultLatest binary
Doc / VignettesOKMar 31 2025
R-4.5-linux-x86_64NOTEMar 31 2025
R-4.4-linux-x86_64OKMar 31 2025

Exports:chmstatechmstate_funchpchchpch_fundmstatedmstate_fundpchdpch_funhmstatehmstate_funhpchhpch_funmultistate_functionspch_functionspmstatepmstate_funppchppch_funqpchqpch_funrpchrpch_funsmstatesmstate_funspchspch_fun

Dependencies:backportscheckmateRcppRcppArmadillo

Citation

To cite package ‘miniPCH’ in publications use:

Fellinger T, Klinglmueller F (2024). miniPCH: Survival Distributions with Piece-Wise Constant Hazards. R package version 0.4.0, https://CRAN.R-project.org/package=miniPCH.

Corresponding BibTeX entry:

  @Manual{,
    title = {miniPCH: Survival Distributions with Piece-Wise Constant
      Hazards},
    author = {Tobias Fellinger and Florian Klinglmueller},
    year = {2024},
    note = {R package version 0.4.0},
    url = {https://CRAN.R-project.org/package=miniPCH},
  }

Readme and manuals

miniPCH

This package provides functionality for survival functions with piece-wise constant hazards in the well known form of functions dpch, ppch, ... as well as functions that take the parameters of the distribution and can later be evaluated just with the time, probability, ...

Installation

You can install the development version of miniPCH like so:

devtools::install_git("https://github.com/SimNPH/miniPCH.git")

Help Manual

Help pageTopics
Survival Distributions with piece-wise constant hazards and multiple stateschmstate dmstate hmstate pmstate smstate
Survival Distributions with piece-wise Constant Hazards and multiple states (function factories)chmstate_fun dmstate_fun hmstate_fun multistate_functions pmstate_fun smstate_fun
Survival Distributions with piece-wise Constant Hazardschpch dpch hpch ppch qpch rpch spch
Survival Distributions with piece-wise Constant Hazards (function factories)chpch_fun dpch_fun hpch_fun pch_functions ppch_fun qpch_fun rpch_fun spch_fun
miniPCH classautoplot.miniPCH plot.miniPCH print.miniPCH summary.miniPCH