powered by
Heterogeneity Plot
plot_heterogeneity(x, term = NULL, type = "Q", alpha_thresh = 0.05)
A ggplot object.
Object returned by metagam.
metagam
Character specifying which smooth term to plot. Defaults to NULL; if x was fitted with a single term, this one is taken.
NULL
x
Character specifying which type of plot. Either "Q" for the test statistic or "p" for the p-value. Defaults to "Q".
"Q"
"p"
Significance level. Defaults to .05.
.05
This plot visualizes the heterogeneity along the given axis, using Cochran's Q test.
# See the vignette, either at https://lifebrain.github.io/metagam/articles/heterogeneity.html # or by typing the following in the console: # vignette("heterogeneity")
Run the code above in your browser using DataLab