Learn R Programming

ggpicrust2 (version 2.5.10)

validate_group_sizes: Validate group sizes for statistical analysis

Description

This function checks group sizes and balance to ensure statistical reliability. Follows Linus principle: fail fast with clear reasons, don't hide problems.

Usage

validate_group_sizes(group_vector, group_name)

Arguments

group_vector

A factor vector with group assignments

group_name

A character string with the group variable name for error messages