open data4-1 matrix X = { const, sqft } matrix y = { price } matrix b = invpd(X'X) * X'y print "estimated coefficient vector" b matrix u = y - X*b scalar SSR = u'u scalar s2 = SSR / (rows(X) - rows(b)) matrix V = s2 * inv(X'X) V matrix se = sqrt(diag(V)) print "estimated standard errors" se # compare with built-in function ols price const sqft --vcv