Learn R Programming

traj

The goal of traj is to implement a three-step procedure in the spirit of Leffondre et al. (2004) to identify clusters of individual longitudinal trajectories. The procedure involves (1) computing a number of “measures of change” capturing various features of the trajectories; (2) using a Principal Component Analysis based dimension reduction algorithm to select a subset of measures and (3) using the k-medoids or k-means algorithm to identify clusters of trajectories.

Installation

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

# install.packages("devtools")
devtools::install_github("IcatianTrout/traj")

Example

See the vignette.

Copy Link

Version

Install

install.packages('traj')

Monthly Downloads

608

Version

3.0.0

License

MIT + file LICENSE

Maintainer

Laurence Boulanger

Last Published

January 28th, 2026

Functions in traj (3.0.0)

trajMeasures

Compute Measures for Identifying Patterns of Change in Longitudinal Data
trajReduce

Select a Subset of the Measures Using a Similarity Index on the Set of Clusterings
plot.trajClusters

Plot trajClusters object
traj-package

traj: Feature-Based Clustering of Longitudinal Trajectories
trajClusters

Classify the Longitudinal Data Based on the Measures.
trajdata

trajdata