joint_signif_mediation: Joint significant mediation test for a single mediator

View source: R/joint_signif_mediation.R

joint_signif_mediationR Documentation

Joint significant mediation test for a single mediator

Description

Joint significant mediation test for a single mediator.

Usage

joint_signif_mediation(E, M, Y, covariates = NULL)

Arguments

E

A numeric vector of exposures.

M

Numeric vector of mediator with one element per sample.

Y

A numeric vector of length(E) of outcomes. Only continuous, normally distributed outcomes currently supported.

covariates

Numeric vector with one element per sample or matrix-like object with rows corresponding to samples and columns to covariates to be adjusted for.

Details

E and Y cannot have NAs. M may have some NAs, but rows that have less non-missing values than 5 + ncol(covariates) will be filtered out, and if verbose=TRUE, a message will be written with the number of rows filtered out.

Larger chi-square values are more significant.

Value

Data frame with one row and columns EMY.p, EM.p, and MY.p.

See Also

https://github.com/cedricbatailler/JSmediation.


jdreyf/Hitman documentation built on April 12, 2025, 1:35 p.m.