View source: R/6_null_estimation.R
| null_estimation | R Documentation |
Estimates the proportion of null hypotheses in dual-stage mediation analysis using empirical p-value distributions. This implements the statistical framework for estimating the proportion of non-mediating variables.
null_estimation(input_pvalues, lambda = 0.5)
input_pvalues |
A numeric matrix with 2 columns:
|
lambda |
Threshold parameter (default: 0.5) for stable estimation of pi00 (proportion of double nulls). Should be in (0,1), typically 0.5 as recommended in literature. |
A list containing estimated null proportions:
alpha00: Proportion of mediators with null effects in both exposure-mediator and mediator-outcome paths
alpha10: Proportion with non-null exposure-mediator but null mediator-outcome effects
alpha01: Proportion with null exposure-mediator but non-null mediator-outcome effects
alpha1: Marginal null proportion in exposure-mediator path
alpha2: Marginal null proportion in mediator-outcome path
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.