1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Nonlinear Modeling with Generalized Additive Models (GAMs) in R

Connected

अभ्यास

Motorcycle crash data: non-linear approach

Now you will fit a non-linear model to the same mcycle data using the gam() function from the mgcv package.

निर्देश

100 XP
  • Load the mgcv package.
  • Fit a model to the mcycle data where accel has a smooth, nonlinear relation to times using the gam() function.
  • Visualize the model fit using the provided call to plot().