Description Usage Arguments Value
View source: R/utility_functions.R
This function estimates components of variance-covariance matrix to subsequently draw random variable of \tilde{β} from a multivariate normal.
1 | covXyXy(k, j, S, X, Y, sigma_sq, x_prime_x, N)
|
k |
column index of first X. |
j |
column index of second X. |
S |
Matrix of error terms. Dimensions must be ncol(X) x ncol(X) |
X |
Design matrix that produced OLS coefficients |
Y |
Dependent variable from OLS model |
sigma_sq |
estimate of σ^2 |
x_prime_x |
X'X |
N |
Number of rows in X |
Estimate of Cov(X_k'y, X_j'y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.