Learn R Programming

ISS (version 1.0.0)

dag_test_FS: dag_test_FS

Description

Implements the fixed sequence testing procedure of familywise error rate control. The sequence is given through ordering elements of p_order increasingly.

Usage

dag_test_FS(p_order, p, alpha, decreasing = FALSE)

Value

A boolean vector of the same length as p with each element being TRUE if the corresponding hypothesis is rejected and FALSE otherwise.

Arguments

p_order

a numeric vector or matrix with one column whose order determines the sequence of tests.

p

a numeric vector taking values in (0, 1] such that length(p) == nrow(p_order) if p_order is a matrix (or length(p) == length(p_order) if p_order is a numeric vector).

alpha

a numeric value in (0, 1] specifying the Type I error rate.

decreasing

a boolean value determining whether the order of p_order should be understood in decreasing order.

Examples

Run this code
p_order <- c(0.5, 0, 1)
p <- c(0.01, 0.1, 0.05)
alpha <- 0.05
dag_test_FS(p_order, p, alpha, decreasing = TRUE)

Run the code above in your browser using DataLab