Description Usage Arguments Value Examples
Get the tidy variance summary from a fitted OLS maars_lm, lm
class object
1 2 3 4 5 6 7 8 9 |
mod_fit |
( |
sand |
(logical) : |
boot_emp |
(logical) : |
boot_sub |
(logical) : |
boot_mul |
(logical) : |
boot_res |
(logical) : |
well_specified |
(logical) : |
(tibble) : Combined standard error summary from a fitted
OLS maars_lm, lm
class object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | ## Not run:
set.seed(1243434)
# generate data
n <- 1e3
X_1 <- stats::rnorm(n, 0, 1)
X_2 <- stats::rnorm(n, 10, 20)
eps <- stats::rnorm(n, 0, 1)
# OLS data and model
y <- 2 + X_1 * 1 + X_2 * 5 + eps
lm_fit <- stats::lm(y ~ X_1 + X_2)
# Empirical Bootstrap check
set.seed(454354534)
mms_var <- comp_var(
mod_fit = lm_fit, boot_emp = list(B = 20, m = 200),
boot_res = list(B = 30)
)
get_summary(mms_var)
# compute variance with multiplier bootstrap now
mms_var2 <- comp_var(
mod_fit = lm_fit,
boot_mul = list(B = 100)
)
get_summary(mms_var2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.