LoslegenKostenlos loslegen

Extrapolation in surface plots

When making predictions from the models, it is important to understand how far from the range of your data you are extrapolating. With multivariate smooths, the shape of the areas supported by data may be complex. Here you'll make plots that compare extrapolations to support in the data.

The model (mod2d) from exercise 2 is available in your workspace.

Diese Übung ist Teil des Kurses

Nonlinear Modeling with Generalized Additive Models (GAMs) in R

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Make plot with 5% extrapolation
vis.gam(mod2d, view = c("x", "y"), 
        plot.type = "contour", ___)

# Overlay data
points(meuse)
Code bearbeiten und ausführen