check_heterogeneity: Check model predictor for heterogeneity bias

Description Usage Arguments Note See Also Examples

View source: R/check_heterogeneity.R

Description

check_heterogeneity() checks if model predictors or variables may cause a heterogeneity bias, i.e. if variables have a within- and/or between-effect.

Usage

1

Arguments

x

A data frame or a mixed model object.

select

Character vector (or formula) with names of variables to select that should be checked. If x is a mixed model object, this argument will be ignored.

group

Character vector (or formula) with the name of the variable that indicates the group- or cluster-ID. If x is a model object, this argument will be ignored.

Note

Ths function will be removed in a future update. Please use performance::check_heterogeneity_bias().

See Also

For further details, see documentation for ?datawizard::demean.

Examples

1
2
3
data(iris)
iris$ID <- sample(1:4, nrow(iris), replace = TRUE) # fake-ID
check_heterogeneity(iris, select = c("Sepal.Length", "Petal.Length"), group = "ID")

parameters documentation built on Oct. 19, 2021, 1:07 a.m.