Skip to contents

Compute q-values from provided p-values Estimate the proportion of H0 relies on the defined interquartile range

Usage

hdmax2_qvalue(pvalues, theta = 0.25)

Arguments

pvalues

result of max squared test

theta

constant defines interquartile range

Value

qvalues, pi0 = H0_proportion

Author

Olivier Francois

Examples

data = hdmax2::simu_data
K = 5
hdmax2_step1 = hdmax2::run_AS(exposure = simu_data$X_binary,
                              outcome = simu_data$Y_continuous,
                              M = simu_data$M1, 
                              K = K)
#> Running first regression with univariate exposure variable.
#> Running second regression.
#> Running max-squared test.

 #Select candidate mediator  
qv = hdmax2::hdmax2_qvalue(hdmax2_step1$max2_pvalues)