Skip to content

Commit

Permalink
FT: #59 add additional example in documentation of get_summary
Browse files Browse the repository at this point in the history
  • Loading branch information
ricfog committed Mar 29, 2021
1 parent 19989a5 commit f4c9da4
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions R/ols-summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -302,19 +302,24 @@ fetch_mms_comp_var_attr <- function(comp_var_ind, req_type) {
#' y <- 2 + X_1 * 1 + X_2 * 5 + eps
#' lm_fit <- stats::lm(y ~ X_1 + X_2)
#'
#' # DEFINE common column names - these stay the same across all
#' # reported error types
#' common_vars <- c("term", "estimate")
#'
#' # Empirical Bootstrap check
#' set.seed(454354534)
#' comp_var1 <- comp_var(
#' mms_var <- comp_var(
#' mod_fit = lm_fit, boot_emp = list(B = 20, m = 200),
#' boot_res = list(B = 30),
#' boot_mul = NULL
#' boot_res = list(B = 30)
#' )
#'
#' # TODO: Add here
#' 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)
#'
#' }
get_summary <- function(mod_fit,
sand = TRUE,
Expand Down

0 comments on commit f4c9da4

Please sign in to comment.