reorder_tau: Reorder parameter calculator

Description Usage Arguments Value Examples

View source: R/diagnostics.R

Description

Given two maps with the same markers, calculates the reordering parameter τ between them. This is based on the rank-correlation, or Kendall correlation.

Usage

1
reorder_tau(oldmap, newmap)

Arguments

oldmap

a data.frame containing at least "marker" and "position" columns.

newmap

a data.frame containing at least "marker" and "position" columns. All marker names must be present in 'oldmap'.

Value

A single parameter indicating the rank order correlation.

Examples

1
2
3
4
5
data("iter_smooth_descent")
old <- sd_iter$iter1$oldmap
new <- sd_iter$iter1$newmap

reorder_tau(old,new)

Alethere/SmoothDescent documentation built on Jan. 14, 2022, 9:40 p.m.