[R] nested random effects

Federico Calboli f.calboli at imperial.ac.uk
Wed Mar 23 20:00:47 CET 2005


On Wed, 2005-03-23 at 10:04 -0800, Berton Gunter wrote:
> > 
> > An interaction random effect/fixed effect is noted as 
> > 
> > random ~1|random/fixed
> > 
> > in your case random =~1|ID/FAM (but I don't uderstand why indiviuals
> > withing families are fixed and and families are random, but there you
> > go).
> > 
> 
> 1. Fixed effects cannot be nested within random effects. 
> 
> 2. The "random" specification is backwards: nesting, |g1/g2/g3... , is outer
> to inner and so FAM/ID

The original question had 

Y~ID

so I assumed ID was/is fixed. I have my reservations on that, but who am
I to decide? it' not my data and anyway I have not seen it.

F
-- 
Federico C. F. Calboli
Department of Epidemiology and Public Health
Imperial College, St Mary's Campus
Norfolk Place, London W2 1PG

Tel  +44 (0)20 7594 1602     Fax (+44) 020 7594 3193

f.calboli [.a.t] imperial.ac.uk
f.calboli [.a.t] gmail.com




More information about the R-help mailing list