Simu_null_emp: Simulation of the null statistics

Description Usage Arguments Value

View source: R/Simu_null_emp.R

Description

Simulation of the null statistics

Usage

1
2
3
4
5
6
7
8
9
Simu_null_emp(
  res,
  smp_size,
  lev_res,
  coeftype,
  size = 10000,
  base_shrink,
  print = TRUE
)

Arguments

res

an output of Wavelet_screening function. The user can also provide a matrix of results of Wavelet_screening (from the same analysis), where the results have been concatenated by row (rbind).

smp_size

Sample size from the main run of Wavelet screening

lev_res

the level of resolution in the wavelet transform

coeftype

type of wavelet coefficient used for the screening (choice "c" or "d"). If missing set as "c"

size

number of simulation to be performed. If not specified set at 10000

base_shrink

numeric, value used in the thresholding of the proportion of assocation, if non specificed set up as 1/sqrt(2*log(sample_size)

print

logical parameter set as TRUE, if TRUE sends a message when 10% of the simulations have been completed.

Value

The simulation under the null of the two test statistics used to build the final test (i.e., L_h and min(ph,pv))


william-denault/WaveletScreaming documentation built on Jan. 23, 2021, 12:34 p.m.