varLevel: Identify level of aggregation at which a variable in...

Description Usage Arguments Value

Description

Shows levels of each variable with respect to grouping formula of form ~id or nested ids ~id1/id2

Usage

1
varLevel(x, form, ...)

Arguments

form

formula to identify clusters

...

extra arguments to constant function

Value

Level 0 is a constant for the whole data frame, Level <= 1 implies the variable is constant within levels of id1, Level <= 2 implies the variable is constant within levels of id2, ... etc.

NOTE: NA counts as a distinct value


gmonette/yscs documentation built on May 17, 2019, 7:28 a.m.