overlap: Checks the similarity of a group of vectors

Description Usage Arguments Author(s) Examples

Description

This function takes a matrix as an argument where the columns are vectors we want to compare and calculates the correlation and Euclidean distance between these vectors

Usage

1
overlap(mat, compare = FALSE)

Arguments

mat

The matrix of vectors to compare

compare

Whether to compare to vectors distributed uniformly on a simplex scaled by the sum of the rightmost vector

Author(s)

Mike Flynn <mflynn210@gmail.com>

Examples

1
2
3
data <- data.frame(size = rnorm(50), weight = rep(.02, 50))
weights <- kmatch(x = data, match.var = "size", weight.var = "weight", n = 100, replace = TRUE)[[1]]
overlap(weights)

davidkane9/kmatching documentation built on May 15, 2019, 1:14 a.m.