Compute q-values from p-values
hdmax2_qvalue.Rd
Compute q-values from provided p-values Estimate the proportion of H0 relies on the defined interquartile range
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)