Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jul 23, 2024
1 parent 0e4c87f commit 86d62e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/equivalence_test.R
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ equivalence_test.ggeffects <- function(x,
params <- insight::get_parameters(model)

# degrees of freedom
dof <- insight::get_df(x = model, type = "residual")
dof <- insight::get_df(x = model, type = "wald")

# mu
params$mu <- params$Estimate * -1
Expand Down
4 changes: 2 additions & 2 deletions R/extract_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
# ==== degrees of freedom

if (is.null(ci_method)) {
df_error <- insight::get_df(x = model, type = "residual", verbose = FALSE)
df_error <- insight::get_df(x = model, type = "wald", verbose = FALSE)
} else {
df_error <- insight::get_df(x = model, type = ci_method, verbose = FALSE)
}
Expand Down Expand Up @@ -565,7 +565,7 @@
if (!ci_method %in% special_ci_methods) {
df_error <- data.frame(
Parameter = parameters$Parameter,
df_error = insight::get_df(x = model, type = "residual"),
df_error = insight::get_df(x = model, type = "wald"),
stringsAsFactors = FALSE
)
}
Expand Down

0 comments on commit 86d62e7

Please sign in to comment.