Skip to content

Commit

Permalink
model_parameters.anova() includes df_error
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jul 9, 2024
1 parent d9d2455 commit 7e26699
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: parameters
Title: Processing of Model Parameters
Version: 0.22.0.1
Version: 0.22.0.2
Authors@R:
c(person(given = "Daniel",
family = "Lüdecke",
Expand Down
9 changes: 7 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

* Support for `svy2lme` models from package *svylme*.

## Bug fixes

* `model_parameters()` for `anova()` from mixed models now also includes the
denominator degrees of freedom in the output (`df_error`).

# parameters 0.22.0

## Breaking changes
Expand Down Expand Up @@ -199,7 +204,7 @@

* `as.data.frame` methods for extracting posterior draws via `bootstrap_model()`
have been retired. Instead, directly using `bootstrap_model()` is recommended.

## Changes to functions

* `equivalence_test()` gets a method for `ggeffects` objects from package
Expand Down Expand Up @@ -351,7 +356,7 @@
* Following functions were moved from package *parameters* to *performance*:
`check_sphericity_bartlett()`, `check_kmo()`, `check_factorstructure()` and
`check_clusterstructure()`.

## Changes to functions

* Added `sparse` option to `principal_components()` for sparse PCA.
Expand Down
1 change: 1 addition & 0 deletions R/extract_parameters_anova.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
names(parameters) <- gsub("Resid. Dev", "Deviance_error", names(parameters), fixed = TRUE)
# error-df
if (!"df_error" %in% names(parameters)) {
names(parameters) <- gsub("DenDF", "df_error", names(parameters), fixed = TRUE)
names(parameters) <- gsub("den Df", "df_error", names(parameters), fixed = TRUE)
names(parameters) <- gsub("Res.Df", "df_error", names(parameters), fixed = TRUE)
names(parameters) <- gsub("Resid. Df", "df_error", names(parameters), fixed = TRUE)
Expand Down

0 comments on commit 7e26699

Please sign in to comment.