plot-GeDSgam-method: Plot method for GeDSgam objects.

plot,GeDSgam-methodR Documentation

Plot method for GeDSgam objects.

Description

Plots on the linear predictor scale the component functions of a GeDSgam object fitted using NGeDSgam.

Usage

## S4 method for signature 'GeDSgam,ANY'
plot(x, base_learners = NULL, f = NULL, n = 3L, ...)

Arguments

x

a GeDSgam-class object from which the GeDSgam fit(s) should be extracted.

base_learners

either NULL or a vector of character string specifying the base-learners of the model for which predictions should be plotted. Note that single base-learner predictions are provided on the linear predictor scale.

f

(optional) specifies the underlying component function or generating process to which the model was fit. This parameter is useful if the user wishes to plot the specified function/process alongside the model fit and the data.

n

integer value (2, 3 or 4) specifying the order (= degree + 1) of the GAM-GeDS fit.

...

further arguments to be passed to the plot.default function.


GeDS documentation built on April 4, 2025, 3:38 a.m.