tame Medication Clustering Tool User Manual

R package for hierarchical clustering of medications based on ATC, timing, and dosage.


tame Medication Clustering Tool User Manual - cover page
Brand
Tame
Category
Healthcare software
Document type
User Manual
Language
English
Pages
15
File format
PDF
File size
179 KB
Published
20 November, 2026
Updated
20 November, 2026
MD5 checksum
23A211951F949FCD3866D9C2F63D6E97

About this manual

This manual describes the R package 'tame', which performs agglomerative hierarchical clustering of medications using ATC codes, timing, and dosage. It includes functions for clustering, summarizing, and applying clusters to new data. The package is designed for researchers and analysts working with pharmaceutical data.

The core function, 'medic()', creates clusters based on customizable parameters such as number of clusters, linkage method, and distance measures. Additional functions like 'employ()' and 'enrich()' allow users to apply existing clusters to new datasets or enrich cluster metadata with external data.

What's inside

  • medic
  • employ
  • enrich
  • is.medic
  • parameters_constructor
  • summary.medic

Specifications

Version0.0.1
DependsR (>= 4.2)
Importsdplyr, fuzzyjoin, magrittr, purrr, Rfast, rlang, stats, stringr, tibble, tidyr, tidyselect, Rcpp (>= 1.0.8)

Frequently asked questions

What is the main function of the tame package?

The main function, 'medic()', performs agglomerative hierarchical clustering of medications based on ATC codes, timing, and dosage.

What does the medic function do?

It uses agglomerative hierarchical clustering with a bespoke distance measure based on medication ATC codes similarities, medication timing and medication amount or dosage.

What is the default linkage method in the medic function?

The default linkage method is 'complete'.

What is the default summation method in the medic function?

The default summation method is 'sum_of_minima'.

Download PDF (179 KB)