change_group {vICC} | R Documentation |
Change Group ID
Description
Change the group ID to be consequetive numbers, starting at 1, which is required for model fitting.
Usage
change_group(group)
Arguments
group |
Numeric Vector. The grouping variable (e.g., subjects). |
Value
Updated group ID.
Examples
# congruent trials
dat <- subset(flanker, id %in% c(39, 23, 2))
change_group(dat$id)
[Package vICC version 1.0.0 Index]