Visualization of a fitted neuralGAM. Plots learned partial effects, either as scatter/line plots for continuous covariates or s for factor covariates. Confidence and/or prediction intervals can be added if available.

# S3 method for class 'neuralGAM'
plot(
  x,
  select = NULL,
  xlab = NULL,
  ylab = NULL,
  interval = c("none", "confidence", "prediction", "both"),
  level = 0.95,
  ...
)

Arguments

x

A fitted neuralGAM object as produced by neuralGAM().

select

Character vector of terms to plot. If NULL (default), all terms are plotted.

xlab

Optional custom x-axis label(s).

ylab

Optional custom y-axis label(s).

interval

One of c("none","confidence","prediction","both"). Default "none". Controls whether intervals are plotted.

level

Coverage level for intervals (e.g. 0.95). Default 0.95.

...

Additional graphical arguments passed to plot().

Value

Produces plots on the current graphics device.

Author

Ines Ortega-Fernandez, Marta Sestelo.