Skip to content

Commit 8bed761

Browse files
authored
Prepare CRAN release (#1070)
* Prepare CRAN release * cran comments
1 parent 106fa46 commit 8bed761

12 files changed

Lines changed: 32 additions & 30 deletions

DESCRIPTION

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: parameters
33
Title: Processing of Model Parameters
4-
Version: 0.24.1.4
4+
Version: 0.24.2
55
Authors@R:
66
c(person(given = "Daniel",
77
family = "Lüdecke",
@@ -226,4 +226,3 @@ Config/testthat/edition: 3
226226
Config/testthat/parallel: true
227227
Config/Needs/website: easystats/easystatstemplate
228228
Config/rcmdcheck/ignore-inconsequential-notes: true
229-
Remotes: easystats/insight

NEWS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# parameters (devel)
1+
# parameters 0.24.2
22

33
## Changes
44

55
* The `effects` argument in `model_parameters()` for classes `merMod`, `glmmTMB`,
6-
`brmsfit` and `stanreg` gets an additional `"total"` option, to return the
7-
overall coefficient for random effects (sum of fixed and random effects).
6+
`brmsfit` and `stanreg` gets an additional `"random_total"` option, to return
7+
the overall coefficient for random effects (sum of fixed and random effects).
88

99
## Bug fixes
1010

R/methods_brms.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ model_parameters.brmsfit <- function(model,
105105
drop_parameters = drop,
106106
...
107107
)
108-
} else if (identical(effects, "total")) {
108+
} else if (effects %in% c("total", "random_total")) {
109109
# group level total effects (coef())
110110
params <- .group_level_total(model, centrality, dispersion, ci, ci_method, test, rope_range, rope_ci, ...)
111111
params$Effects <- "total"

R/methods_glmmTMB.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
#' @param model A mixed model.
1313
#' @param effects Should parameters for fixed effects (`"fixed"`), random
1414
#' effects (`"random"`), both fixed and random effects (`"all"`), or the
15-
#' overall (sum of fixed and random) effects (`"total"`) be returned? Only
16-
#' applies to mixed models. May be abbreviated. If the calculation of random
17-
#' effects parameters takes too long, you may use `effects = "fixed"`.
15+
#' overall (sum of fixed and random) effects (`"random_total"`) be returned?
16+
#' Only applies to mixed models. May be abbreviated. If the calculation of
17+
#' random effects parameters takes too long, you may use `effects = "fixed"`.
1818
#' @param wb_component Logical, if `TRUE` and models contains within- and
1919
#' between-effects (see `datawizard::demean()`), the `Component` column
2020
#' will indicate which variables belong to the within-effects,
@@ -194,15 +194,15 @@ model_parameters.glmmTMB <- function(model,
194194
# which components to return?
195195
effects <- insight::validate_argument(
196196
effects,
197-
c("fixed", "random", "total", "all")
197+
c("fixed", "random", "total", "random_total", "all")
198198
)
199199
component <- insight::validate_argument(
200200
component,
201201
c("all", "conditional", "zi", "zero_inflated", "dispersion")
202202
)
203203

204204
# for coef(), we don't need all the attributes and just stop here
205-
if (effects == "total") {
205+
if (effects %in% c("total", "random_total")) {
206206
params <- .group_level_total(model)
207207
params$Effects <- "total"
208208
class(params) <- c("parameters_coef", "see_parameters_coef", class(params))

R/methods_lme4.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,14 @@ model_parameters.merMod <- function(model,
5555
}
5656

5757
# which component to return?
58-
effects <- insight::validate_argument(effects, c("fixed", "random", "total", "all"))
58+
effects <- insight::validate_argument(
59+
effects,
60+
c("fixed", "random", "total", "random_total", "all")
61+
)
5962
params <- params_random <- params_variance <- NULL
6063

6164
# for coef(), we don't need all the attributes and just stop here
62-
if (effects == "total") {
65+
if (effects %in% c("total", "random_total")) {
6366
params <- .group_level_total(model)
6467
params$Effects <- "total"
6568
class(params) <- c("parameters_coef", "see_parameters_coef", class(params))

R/methods_rstanarm.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ model_parameters.stanreg <- function(model,
1919
verbose = TRUE,
2020
...) {
2121
# for coef(), we don't need all the attributes and just stop here
22-
if (effects == "total") {
22+
if (effects %in% c("total", "random_total")) {
2323
params <- .group_level_total(model)
2424
params$Effects <- "total"
2525
class(params) <- c("parameters_coef", "see_parameters_coef", class(params))

cran-comments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
This release fixes CRAN check issues.
1+
Maintainance release, in preparation for the *modelbased* submission.

man/compare_parameters.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/equivalence_test.lm.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/model_parameters.glmmTMB.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)