View source: R/hima_quantile.R
hima_quantile | R Documentation |
hima_quantile
is used to estimate and test high-dimensional quantile mediation effects.
hima_quantile(
X,
M,
Y,
COV = NULL,
penalty = c("MCP", "SCAD", "lasso"),
topN = NULL,
tau = 0.5,
scale = TRUE,
Bonfcut = 0.05,
verbose = FALSE,
...
)
X |
a vector of exposure. Do not use |
M |
a |
Y |
a vector of continuous outcome. Do not use |
COV |
a matrix of adjusting covariates. Rows represent samples, columns represent variables. Can be |
penalty |
the penalty to be applied to the model (a parameter passed to function |
topN |
an integer specifying the number of top markers from sure independent screening.
Default = |
tau |
quantile level of outcome. Default = |
scale |
logical. Should the function scale the data? Default = |
Bonfcut |
Bonferroni-corrected p value cutoff applied to select significant mediators. Default = |
verbose |
logical. Should the function be verbose? Default = |
... |
reserved passing parameter. |
A data.frame containing mediation testing results of selected mediators (Bonferroni-adjusted p value <Bonfcut
).
mediation name of selected significant mediator.
coefficient estimates of exposure (X) –> mediators (M) (adjusted for covariates).
standard error for alpha.
coefficient estimates of mediators (M) –> outcome (Y) (adjusted for covariates and exposure).
standard error for beta.
mediation (indirect) effect, i.e., alpha*beta.
relative importance of the mediator.
joint raw p-value of selected significant mediator (based on Bonferroni method).
Zhang H, Hong X, Zheng Y, Hou L, Zheng C, Wang X, Liu L. High-Dimensional Quantile Mediation Analysis with Application to a Birth Cohort Study of Mother–Newborn Pairs. Bioinformatics. 2024. DOI: 10.1093/bioinformatics/btae055. PMID: 38290773; PMCID: PMC10873903
## Not run:
# Note: In the following example, M1, M2, and M3 are true mediators.
head(QuantileData$PhenoData)
hima_quantile.fit <- hima_quantile(
X = QuantileData$PhenoData$Treatment,
M = QuantileData$Mediator,
Y = QuantileData$PhenoData$Outcome,
COV = QuantileData$PhenoData[, c("Sex", "Age")],
tau = c(0.3, 0.5, 0.7),
scale = FALSE, # Disabled only for simulation data
Bonfcut = 0.05,
verbose = TRUE
)
hima_quantile.fit
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.