Skip to content
Prev 32198 / 398506 Next

Syntax for random effect in glmmPQL

It is the same syntax as for lme.

I think you meant two *independent* variables.  I don't see the point of
treating a factor with two levels as a random effect: you don't really
expect to estimate a population from just two samples, do you?  If (as I
suspect) the sites are blocking factors they should be treated as fixed
effects (just as randomized block designs are analysed), or if you are
interested in the population of sites you should get several more.

A pedagogical hint to R-help readers:

You don't just have a data set:  you have an experiment or an
observational study you want to analyse.  If you had described the latter,
we might have been able to do better than guess at what you meant.
On Mon, 19 May 2003, Mikael Niva wrote:

            
That gives you a random intercept by site.