Learn R Programming

argminCS (version 1.1.0)

argmin.HT.MT: Perform argmin hypothesis test.

Description

Test if a dimension may be argmin, using multiple testing with Bonferroni's correction.

Usage

argmin.HT.MT(difference.matrix, sample.mean = NULL, test = "z", alpha = 0.05)

Value

A list containing:

p.valp value without Bonferroni's correction.
. critical.valueThe critical value for the hypothesis test. Being less than it leads to a rejection.
ans'Reject' or 'Accept'

Arguments

difference.matrix

A n by (p-1) difference data matrix (reference dimension - the rest); each of its row is a (p-1)-dimensional vector of differences.

sample.mean

The sample mean of differences; defaults to NULL. It can be calculated via colMeans(difference.matrix).

test

The test to perform: 't' or 'z'; defaults to 'z'. If the data are assumed normally distributed, use 't'; otherwise 'z'.

alpha

The significance level of the hypothesis test; defaults to 0.05.