SIM: The main function in SIM paper

Description Usage Arguments Value Examples

View source: R/core.R

Description

The main function in SIM paper

Usage

1
SIM(p_1, p_2, alpha, SIM_F_0_method = 1, method_lambda = 1, method_t = 1)

Arguments

p_1

the auxiliary p-values

p_2

the primary p-values

alpha

the significance level

SIM_F_0_method

method for estimating the null distrbution (1: parametric; 2: nonparametic method)

method_lambda

method for searching the lambda used in null proportion (1: specified; 2: adaptive)

method_t

method for searching the p-value threshold (1: bisection; 2: grid search)

Value

the indices of the hypotheses rejected

Examples

1
2
3
4
5
6
7
p_1 = rnorm(100)
p_1[1:10]=p_1[1:10]+2
p_1 = 1-pnorm(p_1)
p_2 = rnorm(100)
p_2[1:10]=p_2[1:10]+2
p_2 = 1-pnorm(p_2)
out = SIM(p_1, p_2, alpha = 0.1, SIM_F_0_method=1, method_lambda=1, method_t=2)

dulilun/SIMfilter documentation built on Sept. 25, 2020, 12:04 a.m.