Learn R Programming

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")

Copy Link

Version

Install

install.packages('packHV')

Monthly Downloads

331

Version

2.4

License

GPL (>= 2)

Maintainer

Hugo Varet

Last Published

March 24th, 2025

Functions in packHV (2.4)

plot_mm

Spaghetti plot and plot of the mean at each time
plot_multi.table

Plot a multi cross table
compare

Comparing two databases assumed to be identical
convert_factor

Convert variables of a data frame in factors
IC_OR_glm

OR and their confidence intervals for logistic regressions
cut_quanti

Cut a quantitative variable in \(n\) equal parts
desc

Making descriptive statistics
IC_RR_coxph

RR and their confidence intervals for Cox models
convert_zero_NA

Convert 0s in NA
packHV-package

A few useful functions for statisticians
hist_boxplot

Plot a histogram with a boxplot below
multi.table

Multi cross table
plot_km

Kaplan-Meier plot with number of subjects at risk below
plot_reg

Plot points with the corresponding linear regression line