Heterogeneity Plot
plot_heterogeneity(x, term = NULL, type = "Q", alpha_thresh = 0.05)
Object returned by metagam
.
Character specifying which smooth term to plot. Defaults to NULL
; if x
was fitted with a single term, this one is taken.
Character specifying which type of plot. Either "Q"
for the test statistic
or "p"
for the p-value. Defaults to "Q"
.
Significance level. Defaults to .05
.
A ggplot object.
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")