Learn R Programming

JointAI (version 1.1.0)

check_groups_vary_within_lvl: Check if a grouping variable varies within another grouping variable

Description

Check if a grouping variable varies within another grouping variable

Usage

check_groups_vary_within_lvl(lvl, grouping_df)

Value

a named logical vector indicating for each grouping variable (column of grouping_df) whether it varies within the grouping defined by lvl

Arguments

lvl

a vector defining a grouping level

grouping_df

a data.frame with where each column contains the grouping indices of a hierarchical level (as obtained by get_groups(...))