Prepare heterogeneity data
Internal function to prepare data for heterogeneity plots
make_heterogeneity_data(x, term, xvar)
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.
data.frame
Useful links