gam_confounders: Plot varying random effects structure GAM model

View source: R/plot_gam.R

gam_confoundersR Documentation

Plot varying random effects structure GAM model

Description

Display graphical representation different gam models on the same response using different random effects structure and comparing the estimates.

Usage

gam_confounders(
  data,
  var,
  seed = 1234,
  legend = TRUE,
  var_name = NULL,
  plot = TRUE,
  ...
)

Arguments

data

Dataset from where to extract response and independent variables.

var

Character. Response variable to test on gam models with varying random effects structures.

seed

Numeric. Seed for random processes within gams.

legend

Logical. Whether to include the figure legend.

var_name

Character. The label for the y-axis. Default is NULL, so "Predicted score" is used.

plot

Logical. Whether to return the plot. If FALSE, then the models with the varying random effects structures are returned.

...

Currently not used.


nim-ach/ASQ3 documentation built on May 8, 2023, 10:21 p.m.