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