@@ -47,8 +47,8 @@ model_parameters.glmmTMB <- function(model,
4747 ci_method <- .check_df_method(ci_method )
4848
4949 # which components to return?
50- effects <- .check_arg (effects , c(" fixed" , " random" , " all" ))
51- component <- .check_arg (component , c(" all" , " conditional" , " zi" , " zero_inflated" , " dispersion" ))
50+ effects <- insight :: validate_argument (effects , c(" fixed" , " random" , " all" ))
51+ component <- insight :: validate_argument (component , c(" all" , " conditional" , " zi" , " zero_inflated" , " dispersion" ))
5252
5353 # standardize only works for fixed effects...
5454 if (! is.null(standardize ) && standardize != " refit" ) {
@@ -268,8 +268,8 @@ ci.glmmTMB <- function(x,
268268 verbose = TRUE ,
269269 ... ) {
270270 method <- tolower(method )
271- method <- .check_arg (method , c(" wald" , " normal" , " ml1" , " betwithin" , " profile" , " uniroot" , " robust" ))
272- component <- .check_arg (component , c(" all" , " conditional" , " zi" , " zero_inflated" , " dispersion" ))
271+ method <- insight :: validate_argument (method , c(" wald" , " normal" , " ml1" , " betwithin" , " profile" , " uniroot" , " robust" ))
272+ component <- insight :: validate_argument (component , c(" all" , " conditional" , " zi" , " zero_inflated" , " dispersion" ))
273273
274274 if (is.null(.check_component(x , component , verbose = verbose ))) {
275275 return (NULL )
@@ -315,8 +315,8 @@ standard_error.glmmTMB <- function(model,
315315 component = " all" ,
316316 verbose = TRUE ,
317317 ... ) {
318- component <- .check_arg (component , c(" all" , " conditional" , " zi" , " zero_inflated" , " dispersion" ))
319- effects <- .check_arg (effects , c(" fixed" , " random" ))
318+ component <- insight :: validate_argument (component , c(" all" , " conditional" , " zi" , " zero_inflated" , " dispersion" ))
319+ effects <- insight :: validate_argument (effects , c(" fixed" , " random" ))
320320
321321 dot_args <- .check_dots(
322322 dots = list (... ),
@@ -377,7 +377,7 @@ simulate_model.glmmTMB <- function(model,
377377 component = " all" ,
378378 verbose = FALSE ,
379379 ... ) {
380- component <- .check_arg (component , c(" all" , " conditional" , " zi" , " zero_inflated" , " dispersion" ))
380+ component <- insight :: validate_argument (component , c(" all" , " conditional" , " zi" , " zero_inflated" , " dispersion" ))
381381 info <- insight :: model_info(model , verbose = FALSE )
382382
383383 # # TODO remove is.list() when insight 0.8.3 on CRAN
0 commit comments