LoslegenKostenlos loslegen

Plotting fitted values

Using the previously fitted Poisson regression model of horseshoe crab data with sat as the response and width as the explanatory variable you will visually assess the model fit and compare to the previously visualized linear model.

The crab data and Poisson regression model saved as model are loaded in the workspace.

Diese Übung ist Teil des Kurses

Generalized Linear Models in Python

Kurs anzeigen

Interaktive Übung

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

# Add fitted values to the fit_values column of crab dataframe
crab[____] = ____.____
Code bearbeiten und ausführen