Skip to content

Commit c8d9151

Browse files
committed
Bootstrap Argument in parameters::parameters() Function Not Working with svyglm Models
#918
1 parent fd326fb commit c8d9151

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

R/methods_survey.R

+12-5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
model_parameters.svyglm <- function(model,
55
ci = 0.95,
66
ci_method = "wald",
7-
bootstrap = FALSE,
8-
iterations = 1000,
97
standardize = NULL,
108
exponentiate = FALSE,
119
p_adjust = NULL,
@@ -16,16 +14,25 @@ model_parameters.svyglm <- function(model,
1614
...) {
1715
if (insight::n_obs(model) > 1e4 && ci_method == "likelihood") {
1816
insight::format_alert(
19-
"Likelihood confidence intervals may take longer time to compute. Use 'ci_method=\"wald\"' for faster computation of CIs."
17+
"Likelihood confidence intervals may take longer time to compute. Use 'ci_method=\"wald\"' for faster computation of CIs." # nolint
2018
)
2119
}
2220

21+
# validation check, warn if unsupported argument is used.
22+
dot_args <- .check_dots(
23+
dots = list(...),
24+
not_allowed = c("vcov", "vcov_args", "bootstrap"),
25+
class(x)[1],
26+
function_name = "model_parameters",
27+
verbose = verbose
28+
)
29+
2330
out <- .model_parameters_generic(
2431
model = model,
2532
ci = ci,
2633
ci_method = ci_method,
27-
bootstrap = bootstrap,
28-
iterations = iterations,
34+
bootstrap = FALSE,
35+
iterations = 1000,
2936
merge_by = "Parameter",
3037
standardize = standardize,
3138
exponentiate = exponentiate,

0 commit comments

Comments
 (0)