search for: habfac

Displaying 1 result from an estimated 1 matches for "habfac".

2004 Apr 01
2
modelling nested random effects with interactions in R
Hi there Please excuse this elementary question, but I have been fumbling with this for hours and can't seem to get it right. I have a nested anova, with random factor "lakefac" nested within factor "fishfac" (fixed), with an additional fixed factor "Habfac". If I consider everything as fixed effects, it's addmittedly not the correct model, but I can at least get this to work: > nested <- anova(lm(ltotinv ~ habfac + fishfac/lakefac + habfac:fishfac + habfac:(lakefac %in% fishfac))) > nested Analysis of Variance Table Response: l...