## 6.6 r: Estimating Mechanism

Make a table with columns for

• $$(x_i-\bar x)$$
• $$(y_i-\bar y)$$
• $$(x_i-\bar x)(y_i-\bar y)$$
• $$(x_i-\bar x)^2$$
• $$(y_i-\bar y)^2$$

Then sum them and put in the formula