Learn R Programming

hidradenitis

The goal of the hidradenitis package is to support use and interpretation of clinical scores for hidradenitis suppurativa.

Installation

Stable version

You can install the stable version of hidradenitis from CRAN with:

install.packages("devtools")

Development version

You can install the development version of hidradenitis from GitHub with:

# install.packages("devtools")
devtools::install_github("humanpred/hidradenitis")

Example

This is a basic example which shows you how to solve a common problem:

library(hidradenitis)

hasi_r_num(
  bsa_percent_within_site = c(0, 0, 0, 0, 5, 1, 4.3, 1.2, 6.8, 7.2),
  bodysite =
    c("Right Axilla", "Buttocks including Intergluteal Cleft",
      "Back", "Left Thigh", "Head & Neck", "Left Axilla",
      "Chest", "Pubis & Genitals", "Abdomen", "Right Thigh"),
  inflam_color_chg = c(0, 0, 0, 0, 2, 3, 1, 3, 2, 0),
  induration = c(0, 0, 0, 0, 2, 3, 1, 3, 2, 0),
  open_skin_surface = c(0, 0, 0, 0, 2, 3, 1, 3, 2, 0),
  tunnels = c(0, 0, 0, 0, 2, 3, 1, 3, 2, 0)
)

hiscr(
  baseline_abscess = c(3, 2, 4),
  baseline_nodule = c(5, 4, 6),
  baseline_fistula = c(2, 1, 3),
  timepoint_abscess = c(1, 1, 2),
  timepoint_nodule = c(2, 3, 2),
  timepoint_fistula = c(2, 1, 3),
  percentage = 50
)

hs_pga <-
  hs_pga_num(
    abscess_fistula = c(0, 0, 1, 0, 1, 2, 6),
    inflammatory_nodule = c(0, 0, 0, 3, 5, 8, 12),
    non_inflammatory_nodule = c(0, 1, 0, 0, 0, 0, 0)
  )
hs_pga_char(hs_pga)

ihs4 <-
  ihs4_num(
    nodules = c(5, 3, 2),
    abscesses = c(2, 1, 0),
    draining_tunnels = c(1, 2, 3)
  )
ihs4_char(ihs4)

Copy Link

Version

Install

install.packages('hidradenitis')

Monthly Downloads

156

Version

1.0.1

License

GPL (>= 3)

Maintainer

Bill Denney

Last Published

January 10th, 2025

Functions in hidradenitis (1.0.1)

hasi_r_num

Calculates the HASI-R score for each patient and visit.
hs_pga_num

Calculates HS-PGA scores based on abscess, draining fistula, and inflammatory nodule counts.
hiscr

Calculates HiSCR scores given a percentage parameter.
hasi_bsa_to_ordinal

Converts BSA percentage to the ordinal scale for HASI-R scoring.
ihs4_num

Calculates IHS4 scores based on abscess, draining fistula, and inflammatory nodule counts.
ihs4_char

Converts IHS4 numerical scores to character values.
hs_pga_char

Converts HS-PGA numerical scores to character values.