Skip to content

Commit fae733c

Browse files
committed
docs-style, use quietly
1 parent 0c24bf3 commit fae733c

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed

R/check_group_variation.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
#'
9898
#' check_group_variation(egsingle, by = c("schoolid", "childid"), include_by = TRUE)
9999
#'
100-
#' @examplesIf insight::check_if_installed("lme4", stop = FALSE)
100+
#' @examplesIf insight::check_if_installed("lme4", quietly = TRUE)
101101
#'
102102
#' data(sleepstudy, package = "lme4")
103103
#' check_group_variation(sleepstudy, select = "Days", by = "Subject")

R/zzz-deprecated-check_heterogeneity_bias.R

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
#' Check model predictor for heterogeneity bias
1+
#' @title Check model predictor for heterogeneity bias
2+
#' @name check_heterogeneity_bias
23
#'
4+
#' @description
35
#' `check_heterogeneity_bias()` checks if model predictors or variables may
46
#' cause a heterogeneity bias, i.e. if variables have any within-group variance
57
#' (_Bell and Jones, 2015_).
6-
#' \cr\cr
7-
#' **We recommend using [check_group_variation()] instead, for a more detailed and flexible examination of group-wise variability.**
8+
#'
9+
#' **We recommend using [check_group_variation()] instead, for a more detailed
10+
#' and flexible examination of group-wise variability.**
811
#'
912
#' @param x A data frame or a mixed model object.
1013
#' @param select Character vector (or formula) with names of variables to select
@@ -35,8 +38,9 @@
3538
#' For further details, read the vignette
3639
#' <https://easystats.github.io/parameters/articles/demean.html> and also
3740
#' see documentation for [`datawizard::demean()`].
38-
#' \cr\cr
39-
#' For a more detailed and flexible examination of group-wise variability, see [`check_group_variation()`].
41+
#'
42+
#' For a more detailed and flexible examination of group-wise variability, see
43+
#' [`check_group_variation()`].
4044
#'
4145
#' @references
4246
#' - Bell A, Jones K. 2015. Explaining Fixed Effects: Random Effects
@@ -49,6 +53,8 @@
4953
#' check_heterogeneity_bias(iris, select = c("Sepal.Length", "Petal.Length"), by = "ID")
5054
#' @export
5155
check_heterogeneity_bias <- function(x, select = NULL, by = NULL, nested = FALSE) {
56+
insight::format_alert("`check_heterogeneity_bias()` is deprecated. Please use `check_group_variation()` instead.")
57+
5258
if (insight::is_model(x)) {
5359
by <- insight::find_random(x, split_nested = TRUE, flatten = TRUE)
5460
if (is.null(by)) {
@@ -125,5 +131,3 @@ print.check_heterogeneity_bias <- function(x, ...) {
125131
cat("\n")
126132
invisible(x)
127133
}
128-
129-

man/check_group_variation.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/check_heterogeneity_bias.Rd

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

0 commit comments

Comments
 (0)