Learn R Programming

PUMP (version 1.0.4)

adjp_wyss: Westfall-Young Single Step Adjustment Function

Description

This adjustment function utilizes the comp_rawp_ss helper function to compare each row of the matrix sample p-values under alternative hypothesis to all the rows in the matrix of the p-values under the complete null.

Usage

adjp_wyss(
  rawp.mat,
  B,
  Sigma,
  t.df,
  two.tailed,
  verbose = TRUE,
  updateProgress = NULL
)

Value

a matrix of adjusted p-values

Arguments

rawp.mat

a matrix of raw p-values under H1. dimension: nrow = tnum, ncol = M

B

numer of WY permutations

Sigma

correlation matrix of null p-values

t.df

degrees of freedom of null p-values

two.tailed

one or two-tailed test

verbose

whether to print out messaging

updateProgress

function to update progress bar (only used for PUMP shiny app)