Skip to contents

Three functions to compute distances between (token) matrices are supported:

Usage

customDist(
  mnames,
  input_dir,
  transformed = TRUE,
  fun = c("euclidean", "procrustes", "mantel"),
  tokens_suffix = ".ttmx.dist.pac",
  row_selection = vector()
)

Arguments

mnames

List of model names.

input_dir

Directory where the models are stored.

transformed

Whether the distance matrices

fun

Function to calculate the distances.

tokens_suffix

Suffix to add to the model name in the file names of the distance matrices.

row_selection

List of row (and column) names to subset the matrices.

Value

A distance matrix (matrix object) with models as rows and columns.