Aan de slagGa gratis aan de slag

Extracting model elements

The variable returned by lm() that contains the model object has many elements. In order to perform further analysis on the model results, you need to extract the useful bits of it. The model coefficients, the fitted values, and the residuals are perhaps the most important bits of the linear model object.

mdl_price_vs_conv is available.

Deze oefening maakt deel uit van de cursus

Introduction to Regression in R

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Get the model coefficients of mdl_price_vs_conv
___
Code bewerken en uitvoeren