Description Usage Arguments Value
View source: R/utility_functions.R
This function takes repeated samples from the data to estimate a bootstrap distribution of \tilde{β} and b.
1 | varianceBoot(Y, X, S, nsims, N, int_vars, sq_vars, int1, int2, index_sq)
|
Y |
Dependent variable from OLS model |
X |
Design matrix that produced OLS coefficients |
S |
Matrix of error terms. Dimensions must be ncol(X) x ncol(X) |
nsims |
Number of times to draw from a MVN |
int_vars |
Vector of interaction variables |
sq_vars |
Vector of squared variables |
int1 |
Column index of first interaction variable |
int2 |
Column index of second interaction variable |
index_sq |
Column index of second interaction variable |
Bootstrap samples of b and \tilde{β}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.