Exercise

# Manually calculating predictions

As with simple linear regression, you can manually calculate the predictions from the model coefficients. The only change for the parallel slopes case is that the intercept is different for each category of the categorical explanatory variable. That means you need to consider the case when each each category occurs separately.

`taiwan_real_estate`

, `mdl_price_vs_both`

, and `explanatory_data`

are available; `dplyr`

is loaded.

Instructions 1/2

**undefined XP**

- Get the coefficients from
`mdl_price_vs_both`

, assigning to`coeffs`

. - Assign each of the elements of
`coeffs`

to the appropriate variable.