Learn R Programming

hamlet (version 0.9.8)

Hierarchical Optimal Matching and Machine Learning Toolbox

Description

Various functions and algorithms are provided here for solving optimal matching tasks in the context of preclinical cancer studies. Further, various helper and plotting functions are provided for unsupervised and supervised machine learning as well as longitudinal mixed-effects modeling of tumor growth response patterns.

Copy Link

Version

Install

install.packages('hamlet')

Monthly Downloads

216

Version

0.9.8

License

GPL (>= 2)

Maintainer

Teemu Daniel Laajala

Last Published

December 9th, 2025

Functions in hamlet (0.9.8)

mix.binary

Binary coding of categorical variables
match.vec2mat

Transform a matching vector to a binary matching matrix
orxwide

Wide-format baseline data for the ORX study
mix.fun

Apply function to numerical columns of a mixed data.frame while ignoring non-numeric fields
mem.powersimu

Power simulations for the fixed effects of a mixed-effects model through structured bootstrapping of the data and re-fitting of the model
smartjitter

Smart jittering function for deterministic shifting of overlapping values
mem.getcomp

Extract per-observation components for fixed and random effects of a mixed-effects model
vcaplong

Long-format data of the Castration-resistant Prostate Cancer experiment using the VCaP cell line.
vcapwide

Wide-format data of the Castration-resistant Prostate Cancer experiment using the VCaP cell line.
match.dummy

Create dummy individuals or sinks to a data matrix or a distance/dissimilarity matrix
match.bb

Branch and Bound algorithm implementation for performing multigroup non-bipartite matching
extendsymrange

Extend range of variable limits while retaining a point of symmetricity
hamlet-package

Hierarchical Optimal Matching and Machine Learning Toolbox
hmap.key

Add a color key to a plot-region based heatmap built with 'hmap'
mixplot

Scatterplot for mixed type data
hmap

Plot-region based heatmap
match.ga

Non-bipartite matching using the Genetic Algorithm (GA)
match.mat2vec

Transform a binary matching matrix to a matching vector
hmap.annotate

Add a row and column annotations to a plot-region based heatmap built with 'hmap'
mem.plotresid

Plot residuals of a mixed-effects model along with trend lines
mem.plotran

Plot random effects histograms for a fitted mixed-effects model
match.allocate

Allocation of matched units to intervention arms
orxlong

Long-format longitudinal data for the ORX study