Re: [R] TukeyHSD fails on my data

From: Gav Wood <>
Date: Mon, 07 May 2007 21:01:32 +0000 (UTC)

Prof Brian Ripley <ripley <at>> writes:

> We don't have the data (nothing useful was attached - see the posting
> guide for what you can attach), but it looks like you should be using the
> 'which' argument to TukeyHSD.
> > But I get this back:
> >
> > Error in, length(means)) : unimplemented type 'NULL' in 'rep'
> > In addition: Warning messages:
> > 1: non-factors ignored: task in: replications(paste("~", xx), data = mf)
> > 2: non-factors ignored: id in: replications(paste("~", xx), data = mf)
> >
> > Can anyone shed any light on the situation?

The problem was, as Jeff Laake adroitly pointed out, I had failed to tell R that the latter two independents were factors. It was easliy fixed with as.factor().

Thanks folks,

Gav mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 07 May 2007 - 21:07:30 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 07 May 2007 - 21:32:00 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.