Skip to content

Commit

Permalink
Bootstrap Argument in parameters::parameters() Function Not Working…
Browse files Browse the repository at this point in the history
… with svyglm Models

#918
  • Loading branch information
strengejacke committed Nov 20, 2023
1 parent fd326fb commit c8d9151
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions R/methods_survey.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
model_parameters.svyglm <- function(model,
ci = 0.95,
ci_method = "wald",
bootstrap = FALSE,
iterations = 1000,
standardize = NULL,
exponentiate = FALSE,
p_adjust = NULL,
Expand All @@ -16,16 +14,25 @@ model_parameters.svyglm <- function(model,
...) {
if (insight::n_obs(model) > 1e4 && ci_method == "likelihood") {
insight::format_alert(
"Likelihood confidence intervals may take longer time to compute. Use 'ci_method=\"wald\"' for faster computation of CIs."
"Likelihood confidence intervals may take longer time to compute. Use 'ci_method=\"wald\"' for faster computation of CIs." # nolint
)
}

# validation check, warn if unsupported argument is used.
dot_args <- .check_dots(
dots = list(...),
not_allowed = c("vcov", "vcov_args", "bootstrap"),
class(x)[1],
function_name = "model_parameters",
verbose = verbose
)

out <- .model_parameters_generic(
model = model,
ci = ci,
ci_method = ci_method,
bootstrap = bootstrap,
iterations = iterations,
bootstrap = FALSE,
iterations = 1000,
merge_by = "Parameter",
standardize = standardize,
exponentiate = exponentiate,
Expand Down

0 comments on commit c8d9151

Please sign in to comment.