sigmaSq: Estimates sigma^2 from regression

Description Usage Arguments Value

View source: R/utility_functions.R

Description

This function takes OLS coefficients and a Y vector to estimate σ^2 for the model.

Usage

1
sigmaSq(Y, bias_correct, S, X)

Arguments

Y

Dependent variable from OLS model

S

Matrix of error terms. Dimensions must be length(coef) x length(coef)

X

Design matrix that produced OLS coefficients

bias_corrrect

Bias corrected OLS coefficients

Value

Estimate of σ^2


georgieevans/PrivacyUnbiased documentation built on May 22, 2021, 1:01 p.m.