hausdorff: hausdorff

View source: R/hausdorff.R

hausdorffR Documentation

hausdorff

Description

This function computes the Hausdorff metric

Usage

hausdorff(Yob, Yperm)

Arguments

Yob

Let Yob be a vector of numbers (i.e. p-values for the observed traits with the SNP of interest)

Yperm

Let Yperm be a vector of numbers (i.e. p-values for the permuted traits with the SNP of interest)

Details

This function compares the observed set of p-values to the permuted using the hausdorff function, max(sup_x inf_y d(x,y), sup_y inf_x d(x,y))

Value

hausdorff metric for the 2 sets

Author(s)

Sharon Lutz

Examples

hausdorff(c(0.05,0.01),c(0.001,0.9))

SharonLutz/pleiotropy documentation built on Jan. 4, 2024, 7:51 a.m.