Learn R Programming

mFDP (version 0.2.1)

mFDP.equiv: mFDP control for equivalence testing

Description

Controls the median of the FDP, given a vector of test statistics.

Usage

mFDP.equiv(Ts, delta, gamma=0.05)

Value

The indices of the rejected hypotheses

Arguments

Ts

A vector containing the test statistics T_1,...,T_m

delta

Determines the null hypotheses H_1,...,H_m. Should be >0. For every j, H_j is the null hypothesis that |T_j| has mean at least delta. The alternative hypothesis is that |T_j| has mean smaller than delta

gamma

Desired upper bound for the mFDP

Examples

Run this code
set.seed(123)

tstats = rnorm(n=200)  #make some test statistics

mFDP.equiv(Ts = tstats,delta=2)  #indices of rejected hypotheses

Run the code above in your browser using DataLab