null_estimation: Estimate Null Proportion in Joint Mediation Analysis

View source: R/6_null_estimation.R

null_estimationR Documentation

Estimate Null Proportion in Joint Mediation Analysis

Description

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.

Usage

null_estimation(input_pvalues, lambda = 0.5)

Arguments

input_pvalues

A numeric matrix with 2 columns:

  • Column 1: p-values for exposure-mediator associations (alpha path)

  • Column 2: p-values for mediator-outcome associations adjusted for exposure (beta path)

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.

Value

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


TransHDM documentation built on Nov. 24, 2026, 9:06 a.m.