powered by
Show deft result
deft_show( deft, element, study_labels = NULL, headings = list(study = ifelse(element == "all", "Study-subgroup", "Study"), n = "N", measure = NULL, ci = "HR (95% CI)"), trans = base::exp, show_model = ifelse(element == "all", FALSE, TRUE), show_stats = list(`I^2` = rlang::quo(sprintf("%0.1f%%", I2)), p = rlang::quo(format.pval(QEp, digits = 2))), ... )
result from deft_do.
'all' or 'subgroup'.
labels for studies.
a list for controlling plot headings.
an optional transform function used on the numeric data for plotting the axes
a logical value, if TRUE, show model result, otherwise only show forest plots for studies
TRUE
a list of stats to show at the bottom of the forest plot for e.g. heterogeneity
list
other arguments except 'panels', 'trans', 'study_labels', and 'show_stats' passed to forestmodel::forest_rma().
forestmodel::forest_rma()
a ggplot object
ggplot
# NOT RUN { data("wang2019") res <- deft_do(wang2019, group_level = c("Male", "Female")) p1 <- deft_show(res, "all") p1 p2 <- deft_show(res, "subgroup") p2 # }
Run the code above in your browser using DataLab