Timing, Anatomical, Therapeutic and Chemical Based Medication Clustering

Agglomerative hierarchical clustering with a bespoke distance measure based on medication similarities in the Anatomical Therapeutic Chemical Classification System, medication timing and medication amount or dosage. Tools for summarizing, illustrating and manipulating the cluster objects are also available.


tame

CRANstatus R-CMD-check CRAN Downloads overall

Timing, Anatomical, Therapeutic and Chemical Based Medication Clustering.

Overview

tame is an R package that implements an agglomerative hierarchical clustering with a bespoke distance measure based on medication similarities in the Anatomical Therapeutic Chemical Classification System, medication timing and medication amount or dosage. Tools for summarizing, illustrating and manipulating the cluster objects are also available.

Installation

install.package("tame")

Usage

Use medic to cluster medication data with ATC codes and dosage trajectories.

library(tame)

# A simple clustering based only on ATC
clust <- medic(complications, id = id, atc = atc, k = 3)


# A simple clustering with both ATC and timing
clust <- medic(
  complications,
  id = id,
  atc = atc,
  timing = first_trimester:third_trimester,
  k = 3
)

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("tame")

0.2.1 by Anna Laksafoss, 9 months ago


Report a bug at https://github.com/Laksafoss/tame/issues


Browse source code at https://github.com/cran/tame


Authors: Anna Laksafoss [aut, cre] (ORCID:


Documentation:   PDF Manual  


GPL (>= 3) | file LICENSE license


Imports dplyr, purrr, Rfast, rlang, stats, stringr, tibble, tidyr, tidyselect, Rcpp, ggplot2, scales, utils

Suggests rmarkdown, knitr, testthat

Linking to Rcpp


See at CRAN