Skip to content

Commit

Permalink
remove effects arg where not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jun 24, 2024
1 parent 6b9af10 commit 53fad3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions R/eta_squared-main.R
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ cohens_f_squared <- function(model,
include_intercept = include_intercept
)

attr(out, "anova_type") <- tryCatch(attr(parameters::model_parameters(model, verbose = FALSE, effects = "fixed", es_type = NULL), "anova_type"),
attr(out, "anova_type") <- tryCatch(attr(parameters::model_parameters(model, verbose = FALSE, es_type = NULL), "anova_type"),
error = function(...) 1
)
attr(out, "approximate") <- TRUE
Expand Down Expand Up @@ -863,7 +863,7 @@ cohens_f_squared <- function(model,

# TODO this should be in .anova_es.anvoa
# TODO the aoc method should convert to an anova table, then pass to anova
params <- parameters::model_parameters(model, verbose = verbose, effects = "fixed", es_type = NULL)
params <- parameters::model_parameters(model, verbose = verbose, es_type = NULL)
out <- .es_aov_simple(as.data.frame(params),
type = type,
partial = partial, generalized = generalized,
Expand All @@ -889,7 +889,7 @@ cohens_f_squared <- function(model,
verbose = TRUE,
include_intercept = FALSE,
...) {
params <- parameters::model_parameters(model, verbose = verbose, effects = "fixed", es_type = NULL)
params <- parameters::model_parameters(model, verbose = verbose, es_type = NULL)
anova_type <- attr(params, "anova_type")
params <- as.data.frame(params)

Expand Down
2 changes: 1 addition & 1 deletion R/eta_squared-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
ci = 0.95, alternative = "greater",
verbose = TRUE,
...) {
params <- parameters::model_parameters(model, verbose = verbose, effects = "fixed", es_type = NULL)
params <- parameters::model_parameters(model, verbose = verbose, es_type = NULL)
anova_type <- attr(params, "anova_type")

params <- split(params, factor(params$Response, levels = unique(params$Response))) # make sure row order is not changed
Expand Down

0 comments on commit 53fad3f

Please sign in to comment.