Effectively, this function keeps variables that are -not- invariant below the grouping level specified. For example, if person_id was specified, it would keep only variables that do vary below the person level. It does this by calling keep_top and excluding anything that does not vary below the person level (i.e. trait level variables). If person_id and daynr were specified, it would keep only variables that vary below the day level (i.e. momentary variables). Grouping variables are always retained.
1 |
data |
The input dataset |
grouping |
The grouping variables that determine the level at which variables should not vary if they are to be kept. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.