OU_approx: Ornstein Uhlenbeck Approximation to Family-Wise Error Rate

View source: R/OU_approx.R

OU_approxR Documentation

Ornstein Uhlenbeck Approximation to Family-Wise Error Rate

Description

Analytic approximation to the family-wise error rate for test statistics arising from Ornstein-Uhlenbeck process. Approximation courtesy of: Siegmund and Yakir (2007). The statistics of gene mapping.

Usage

OU_approx(z, beta, Delta, length, chr, center, test)

Arguments

z

the critical value.

beta

the OU covariance parameter.

Delta

the spacing between markers.

length

the total length of the region.

chr

the number of chromosomes.

center

the level for family-wise error rate.

test

the type of test ("two-sided" or "one-sided").

Value

A single number indicating the distance between the family-wise error rate using critical value z and the desired level (center).

Examples

OU_approx(4.277817, 0.01*6, 0.2, 3500, 22, 0.05, "two-sided")


kegrinde/STEAM documentation built on June 30, 2024, 11:27 p.m.