
Unbiased residual variance for a linear model
Source:R/esl_native0.R
morie_esl_residual_variance.RdESL Eq. (3.8), sigma^2 = RSS / (N - p - 1). The book is explicit
about the denominator: N - p - 1 rather than N is what makes
E(sigma^2_hat) = sigma^2. The p + 1 counts the slopes plus the
intercept, so a design that already carries a column of ones must
not be charged for it twice.
Value
list: value, sigma, rss, df, n, p, intercept_in_X, mle_variance, bias_factor, fitted, residuals, method.