Skip to content

Commit

Permalink
consistent order of arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 6, 2024
1 parent 16aee8f commit 9902717
Show file tree
Hide file tree
Showing 10 changed files with 66 additions and 66 deletions.
10 changes: 5 additions & 5 deletions R/1_model_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -567,13 +567,13 @@ model_parameters.default <- function(model,
standardize = NULL,
exponentiate = FALSE,
p_adjust = NULL,
vcov = NULL,
vcov_args = NULL,
summary = getOption("parameters_summary", FALSE),
include_info = getOption("parameters_info", FALSE),
keep = NULL,
drop = NULL,
verbose = TRUE,
vcov = NULL,
vcov_args = NULL,
...) {
# validation check for inputs
.is_model_valid(model)
Expand Down Expand Up @@ -665,9 +665,9 @@ model_parameters.default <- function(model,
include_info = FALSE,
keep_parameters = NULL,
drop_parameters = NULL,
verbose = TRUE,
vcov = NULL,
vcov_args = NULL,
verbose = TRUE,
...) {
dots <- list(...)

Expand Down Expand Up @@ -759,12 +759,12 @@ model_parameters.glm <- function(model,
standardize = NULL,
exponentiate = FALSE,
p_adjust = NULL,
vcov = NULL,
vcov_args = NULL,
summary = getOption("parameters_summary", FALSE),
include_info = getOption("parameters_info", FALSE),
keep = NULL,
drop = NULL,
vcov = NULL,
vcov_args = NULL,
verbose = TRUE,
...) {
dots <- list(...)
Expand Down
4 changes: 2 additions & 2 deletions R/methods_cplm.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ model_parameters.zcpglm <- function(model,
standardize = NULL,
exponentiate = FALSE,
p_adjust = NULL,
keep = NULL,
drop = NULL,
summary = getOption("parameters_summary", FALSE),
include_info = getOption("parameters_info", FALSE),
keep = NULL,
drop = NULL,
verbose = TRUE,
...) {
component <- match.arg(component)
Expand Down
8 changes: 4 additions & 4 deletions R/methods_fixest.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ model_parameters.fixest <- function(model,
standardize = NULL,
exponentiate = FALSE,
p_adjust = NULL,
vcov = NULL,
vcov_args = NULL,
summary = getOption("parameters_summary", FALSE),
include_info = getOption("parameters_info", FALSE),
keep = NULL,
drop = NULL,
verbose = TRUE,
vcov = NULL,
vcov_args = NULL,
...) {
# default ci-method, based on statistic
if (is.null(ci_method)) {
Expand Down Expand Up @@ -131,13 +131,13 @@ model_parameters.fixest_multi <- function(model,
standardize = NULL,
exponentiate = FALSE,
p_adjust = NULL,
vcov = NULL,
vcov_args = NULL,
summary = getOption("parameters_summary", FALSE),
include_info = getOption("parameters_info", FALSE),
keep = NULL,
drop = NULL,
verbose = TRUE,
vcov = NULL,
vcov_args = NULL,
...) {
## TODO remove deprecated later
if (!missing(summary)) {
Expand Down
2 changes: 1 addition & 1 deletion R/methods_glmmTMB.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ model_parameters.glmmTMB <- function(model,
wb_component = TRUE,
summary = getOption("parameters_mixed_summary", FALSE),
include_info = getOption("parameters_mixed_info", FALSE),
include_sigma = FALSE,
keep = NULL,
drop = NULL,
verbose = TRUE,
include_sigma = FALSE,
...) {
insight::check_if_installed("glmmTMB")

Expand Down
6 changes: 3 additions & 3 deletions R/methods_lme4.R
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,15 @@ model_parameters.merMod <- function(model,
group_level = FALSE,
exponentiate = FALSE,
p_adjust = NULL,
vcov = NULL,
vcov_args = NULL,
wb_component = TRUE,
summary = getOption("parameters_mixed_summary", FALSE),
include_info = getOption("parameters_mixed_info", FALSE),
include_sigma = FALSE,
keep = NULL,
drop = NULL,
verbose = TRUE,
include_sigma = FALSE,
vcov = NULL,
vcov_args = NULL,
...) {
dots <- list(...)

Expand Down
4 changes: 2 additions & 2 deletions R/methods_nestedLogit.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ model_parameters.nestedLogit <- function(model,
standardize = NULL,
exponentiate = FALSE,
p_adjust = NULL,
vcov = NULL,
vcov_args = NULL,
summary = getOption("parameters_summary", FALSE),
include_info = getOption("parameters_info", FALSE),
keep = NULL,
drop = NULL,
vcov = NULL,
vcov_args = NULL,
verbose = TRUE,
...) {
dots <- list(...)
Expand Down
2 changes: 1 addition & 1 deletion R/methods_svy2lme.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
model_parameters.svy2lme <- function(model,
ci = 0.95,
effects = "all",
include_sigma = FALSE,
keep = NULL,
drop = NULL,
verbose = TRUE,
include_sigma = FALSE,
...) {
dots <- list(...)
# which component to return?
Expand Down
62 changes: 31 additions & 31 deletions man/model_parameters.default.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions man/model_parameters.merMod.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions man/model_parameters.zcpglm.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9902717

Please sign in to comment.