mlmRev::egsingle |>
performance::check_group_variation(
select = c("female", "grade", "math"),
by = c("schoolid", "childid"),
include_by = TRUE
)
#> Check schoolid variation
#>
#> Variable | Variation | Design
#> ------------------------------
#> childid | both | nested
#> female | within | crossed
#> grade | both |
#> math | both |
#>
#> Check childid variation
#>
#> Variable | Variation | Design
#> -----------------------------
#> schoolid | between |
#> female | between |
#> grade | both |
#> math | both |
π Introducing check_group_variation() in the {performance} #Rstats package! π
This function makes it easy to checks if variables vary within or between levels of grouping variables.
Perfect for understanding and designing mixed models π
easystats.github.io/performance/...
#stats #easystats