if (FALSE) {
data <- get(data(dat.bourassa1996))
data <- escalc(measure = "OR", ai = lh.le, bi = lh.re, ci = rh.le, di= rh.re,
data = data, add = 1/2, to = "all")
data$mage[is.na(data$mage)] <- median(data$mage, na.rm = TRUE)
data[c(5:8)] <- lapply(data[c(5:8)], factor)
data$yi <- as.numeric(data$yi)
mf.model <- MetaForest(formula = yi~ selection + investigator + hand_assess + eye_assess +
mage +sex,
data, study = "sample",
whichweights = "unif", num.trees = 300)
preselect(mf.model,
replications = 10,
algorithm = "bootstrap")
}
Run the code above in your browser using DataLab