if (FALSE) {
# Note: In the following example, M1, M2, and M3 are true mediators.
# Y is continuous and normally distributed
# Example (continuous outcome):
data(ContinuousOutcome)
pheno_data <- ContinuousOutcome$PhenoData
mediator_data <- ContinuousOutcome$Mediator
hima_efficient.fit <- hima_efficient(
X = pheno_data$Treatment,
Y = pheno_data$Outcome,
M = mediator_data,
COV = pheno_data[, c("Sex", "Age")],
scale = FALSE, # Disabled only for simulation data
FDRcut = 0.05,
verbose = TRUE
)
hima_efficient.fit
}
Run the code above in your browser using DataLab