if (FALSE) {
# Note: In the following example, M1, M2, and M3 are true mediators.
# Y is continuous and normally distributed
# Example (continuous outcome):
head(ContinuousOutcome$PhenoData)
hima_efficient.fit <- hima_efficient(
X = ContinuousOutcome$PhenoData$Treatment,
Y = ContinuousOutcome$PhenoData$Outcome,
M = ContinuousOutcome$Mediator,
COV = ContinuousOutcome$PhenoData[, 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