IniziaInizia gratis

Assessing model performance

To test which approach is best—the whole dataset model or the models for each house age category—you need to calculate some metrics. Here's, you'll compare the coefficient of determination and the residual standard error for each model.

Four models of price versus no. of convenience stores (mdl_all_ages, mdl_0_to_15, mdl_15_to_30, and mdl_30_to_45) are available; dplyr and broom are loaded.

Questo esercizio fa parte del corso

Intermediate Regression in R

Visualizza il corso

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Get the coeff. of determination for mdl_all_ages
___



# Get the coeff. of determination for mdl_0_to_15
___



# Get the coeff. of determination for mdl_15_to_30
___



# Get the coeff. of determination for mdl_30_to_45
___
Modifica ed esegui il codice