Skip to content
Prev 5590 / 20628 Next

aov() -> lme() conversion difficulty

On 11-03-16 10:41 AM, Brian Edward wrote:
I think you want

         random = ~NumEyesUsed|PersonID
Your table got mangled.  Was it supposed to look like this?
If so, then it's clear from the denominator DF that something is wrong ...
Error: PersonID
Also note that your residual errors are essentially zero, which means
you don't have any variation left after you have included experimental
blocks -- some are aliased with the residual error.
What are your actual response variables?  Number of successes out of
10 tries?  In that case I might suggest

  lmer(cbind(Hits,10-Hits)~NumEyesUsed+(NumEyesUsed|PersonID),
family=binomial, data= ...)

  although that will make it hard for you get p-values.

  For that matter, since you have only two treatment levels, what's
wrong with a paired t-test ... ???

  Ben Bolker