This example uses the LinRegMatrix and LinReg functions to find the coefficients of the variables that determine the selling price of a home in a given neighborhood. The response variable, SellingPrice (the selling price of the house in dollars) is modeled on these independent (predictor) variables:
- House size (in square feet)
- Lot size (in square feet)
- Number of bedrooms
- Whether the kitchen counter is granite (0 or 1)
- Whether the bathrooms are upgraded (0 or 1)