Compute selective p-value using numerical integration
selective_p_val_integrate.RdCompute selective p-value using numerical integration
Arguments
- n
sample size
- L
matrix used to define conditioning set
- g
vector used to define conditioning set
- test_hyp
output of
test_stat_CCA()- tol
the relative tolerance used to approximate the p-value using
selective_p_val_integrate(); default value is 1e-05- maxeval
the maximum number of function evaluations used to approximate the p-value using
selective_p_val_integrate(); we recommend using a high value of this to obtain an approximation with high accuracy; default value is 10,000