Skip to content
Prev 14908 / 20628 Next

Managing person identifier variable

???? ???????, 5 ????????? 2016 6:59:30 ?.?. EEST MACDOUGALL Margaret ??????:
Just recode it as a factor, i.e. factor(persID).

By the way, lme4 does that implicitly if you specify a numeric variable as a 
random effect in a model formula, i.e. you can just say: y ~ x + (1|persID) 
instead of: y ~ x + (1|factor(persID))