}_i\)` 


```r
rmse(data, truth, estimate)
```


.footnote[`*` from `yardstick`]

---


```r
lm_fit &lt;- fit_data(Sale_Price ~ Gr_Liv_Area, 
                   model = lm_spec, 
                   data = ames)

price_pred &lt;- lm_fit %&gt;% 
  predict(new_data = ames) %&gt;% 
  mutate(price_truth = ames$Sale_Price)

*rmse(price_pred, truth = price_truth, estimate = .pred)
## # A tibble: 1 x 3
##   .metric .estimator .estimate
##   &lt;chr&gt;   &lt;chr&gt;          &lt;dbl&gt;
## 1 rmse    standard      5