gam_confounders | R Documentation |
Display graphical representation different gam models on the same response using different random effects structure and comparing the estimates.
gam_confounders(
data,
var,
seed = 1234,
legend = TRUE,
var_name = NULL,
plot = TRUE,
...
)
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.