Description Usage Arguments Author(s) References See Also Examples
Variance-Covariance Matrix of Estimates of Regression Coefficients (from \hat{σ}_{\varepsilon \ \textrm{biased}}^{2})
1 | vcovhatbetahatbiased(X, y)
|
X |
|
y |
Numeric vector of length |
Ivan Jacob Agaloos Pesigan
Wikipedia: Ordinary Least Squares
Other variance-covariance of estimates of regression coefficients functions:
.vcovhatbetahatbiased()
,
.vcovhatbetahat()
,
vcovhatbetahat()
1 2 3 4 5 6 7 8 9 10 11 | # Simple regression------------------------------------------------
X <- jeksterslabRdatarepo::wages.matrix[["X"]]
X <- X[, c(1, ncol(X))]
y <- jeksterslabRdatarepo::wages.matrix[["y"]]
vcovhatbetahatbiased(X = X, y = y)
# Multiple regression----------------------------------------------
X <- jeksterslabRdatarepo::wages.matrix[["X"]]
# age is removed
X <- X[, -ncol(X)]
vcovhatbetahatbiased(X = X, y = y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.