शुरू करेंमुफ़्त में शुरू करें

Comparing coefficients of determination

Recall that the coefficient of determination is a measure of how well the linear regression line fits the observed values. An important motivation for including several explanatory variables in a linear regression is that you can improve the fit compared to considering only a single explanatory variable.

Here you'll compare the coefficient of determination for the three Taiwan house price models, to see which gives the best result.

mdl_price_vs_conv, mdl_price_vs_age, and mdl_price_vs_both are available; dplyr and broom are loaded.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Intermediate Regression in R

पाठ्यक्रम देखें

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

mdl_price_vs_conv %>% 
  # Get the model-level coefficients
  ___ %>% 
  # Select the coeffs of determination
  ___

# Get the coeffs of determination for mdl_price_vs_age
mdl_price_vs_age %>% 
  ___ %>% 
  ___

# Get the coeffs of determination for mdl_price_vs_both
mdl_price_vs_both %>% 
  ___ %>% 
  ___
कोड संपादित करें और चलाएँ