Package: packHV 2.4

Hugo Varet
packHV: A few Useful Functions for Statisticians
Various useful functions for statisticians: describe data, plot Kaplan-Meier curves with numbers of subjects at risk, compare data sets, display spaghetti-plot, build multi-contingency tables...
Authors:
packHV_2.4.tar.gz
packHV_2.4.tar.gz(r-4.5-noble)packHV_2.4.tar.gz(r-4.4-noble)
packHV_2.4.tgz(r-4.4-emscripten)packHV_2.4.tgz(r-4.3-emscripten)
packHV.pdf |packHV.html✨
packHV/json (API)
# Install 'packHV' in R: |
install.packages('packHV', repos = 'https://cloud.r-project.org') |
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated 10 days agofrom:e6a7d3f4c0. Checks:3 OK. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Mar 24 2025 |
R-4.5-linux | OK | Mar 24 2025 |
R-4.4-linux | OK | Mar 24 2025 |
Exports:compareconvert_factorconvert_zero_NAcut_quantideschist_boxplotIC_OR_glmIC_RR_coxphmulti.tableplot_kmplot_mmplot_multi.tableplot_reg
Citation
To cite package ‘packHV’ in publications use:
Varet H (2025). packHV: A few Useful Functions for Statisticians. R package version 2.4, https://CRAN.R-project.org/package=packHV.
Corresponding BibTeX entry:
@Manual{, title = {packHV: A few Useful Functions for Statisticians}, author = {Hugo Varet}, year = {2025}, note = {R package version 2.4}, url = {https://CRAN.R-project.org/package=packHV}, }
Readme and manuals
packHV R package: A few Useful Functions for Statisticians
R package created in 2012 and freely available at https://CRAN.R-project.org/package=packHV
Installation from the CRAN
To install the packHV package from the CRAN, open a R session and run install.packages("packHV")
Installation from GitHub
To install the packHV package from GitHub, open a R session and:
- install devtools with
install.packages("devtools")
(if not installed yet) - for Windows users only, install Rtools or check that it is already installed (needed to build the package)
- run
devtools::install_github("hvaret/packHV")
Help Manual
Help page | Topics |
---|---|
A few useful functions for statisticians | packHV-package packHV |
Comparing two databases assumed to be identical | compare |
Convert variables of a data frame in factors | convert_factor |
Convert 0s in NA | convert_zero_NA |
Cut a quantitative variable in n equal parts | cut_quanti |
Making descriptive statistics | desc |
Plot a histogram with a boxplot below | hist_boxplot |
OR and their confidence intervals for logistic regressions | IC_OR_glm |
RR and their confidence intervals for Cox models | IC_RR_coxph |
Multi cross table | multi.table |
Kaplan-Meier plot with number of subjects at risk below | plot_km |
Spaghetti plot and plot of the mean at each time | plot_mm |
Plot a multi cross table | plot_multi.table |
Plot points with the corresponding linear regression line | plot_reg |