Skip to content
/ tame Public

Timing and ATC Based Medication Clustering

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

Laksafoss/tame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
)

About

Timing and ATC Based Medication Clustering

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published