RE: [R] nested random effects

From: Federico Calboli <f.calboli_at_imperial.ac.uk>
Date: Thu 24 Mar 2005 - 06:00:47 EST

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

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu Mar 24 06:09:25 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:55 EST