Skip to content
Prev 12862 / 20628 Next

Modelling random effects for only part of the observations (in lme4)

Hi,

Create a binary vector (lets call it b) with 0 for observations where  
you don't want random effects and a 1 where you do. Then fit:

(b|group)

Cheers,

Jarrod



Quoting Mitchell Maltenfort <mmalten at gmail.com> on Thu, 15 Jan 2015  
13:34:04 -0500: