plot_heterogeneity {metagam}R Documentation

Heterogeneity Plot

Description

Heterogeneity Plot

Usage

plot_heterogeneity(x, term = NULL, type = "Q", alpha_thresh = 0.05)

Arguments

x

Object returned by metagam.

term

Character specifying which smooth term to plot. Defaults to NULL; if x was fitted with a single term, this one is taken.

type

Character specifying which type of plot. Either "Q" for the test statistic or "p" for the p-value. Defaults to "Q".

alpha_thresh

Significance level. Defaults to .05.

Details

This plot visualizes the heterogeneity along the given axis, using Cochran's Q test.

Value

A ggplot object.

Examples

# See the vignette, either at https://lifebrain.github.io/metagam/articles/heterogeneity.html
# or by typing the following in the console:
# vignette("heterogeneity")



[Package metagam version 0.4.0 Index]