if (FALSE) {
# Note: In the following example, M1, M2, and M3 are true mediators.
data(himaDat)
head(himaDat$Example5$PhenoData)
qHIMA.fit <- qHIMA(X = himaDat$Example5$PhenoData$Treatment,
M = himaDat$Example5$Mediator,
Y = himaDat$Example5$PhenoData$Outcome,
COV = himaDat$Example5$PhenoData[, c("Sex", "Age")],
Bonfcut = 0.05,
tau = c(0.3, 0.5, 0.7),
scale = FALSE, # Disabled only for simulation data
verbose = TRUE)
qHIMA.fit
}
Run the code above in your browser using DataLab