Skip to content
 
 

Repository files navigation

R-CMD-check

📦 IDEFICS.scalc

IDEFICS.scalc provides functions to compute standardized percentiles, and z-scores for anthropometric and metabolic parameters in children and young adults, based on age-, sex-, and height-specific reference data from the IDEFICS study and the Biomarkers4Pediatrics collaboration. The package also supports the computation of a composite Metabolic Syndrome (MetS) score and categorizing health risk levels using action thresholds.

🔧 Installation

You can install the development version of IDEFICS_scalc from GitHub using:

# Install devtools if not already installed
install.packages("devtools")

# Install directly from GitHub
devtools::install_github("bips-hb/IDEFICS_scalc")

🚀 Example

library(IDEFICS.scalc)

# Input: data frame with raw values
df <- data.frame(
  sex = c("f", "m"),
  age = c(8, 15),
  height = c(120, 125),
  waist = c(55, 60),
  homa = c(1.2, 1.4),
  sbp = c(100, 105),
  dbp = c(65, 70),
  trg = c(0.9, 1.0),
  hdl = c(1.1, 1.0),
  crp = c(6, 2)
)

# Calculate z-scores and MetS
results <- ScoreCalc(df, return_values = c("z.score", "MetS"))

# View output
print(results)

📚 Functions

  • get_scores() — Get percentiles or z-scores for a single variable.
  • ScoreCalc() — Calculate scores for multiple variables and optionally MetS.
  • MetSScore() — Calculate MetS from z-scores.
  • action_levels() — Assign action levels based on percentile cutoffs.

📖 Reference

This package uses internal parameter tables based on the IDEFICS study, a European cohort focused on childhood obesity and metabolic health:

and Biomarkers4Pediatrics, an international multicohort pediatric biomarker collaboration:

The reference data used for all variables other than CRP in this package were originally published in:

This package improves upon and packages that logic cleanly for programmatic and research use.

About

R package to calculate IDEFICS scores more comfortably.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages