Skip to content
Prev 10089 / 398506 Next

Problem With Model.Tables Function

I believe that these are correct, but you haven't told us why you think
they are wrong.  In the unbalanced case you need to understand carefully
what to expect: your expected answer is definitely wrong, which suggests
that R's might well be right.

For the record, these R results agree with S-PLUS on your examples.
But they are not much documented in the unbalanced case, so perhaps
`for experts only'.

The FAQ says:

9.1 What is a bug?

....

If a command does the wrong thing, that is a bug.  But be sure you know for
certain what it ought to have done.  If you aren't familiar with the
command, or don't know for certain how the command is supposed to work,
then it might actually be working right.  Rather than jumping to
conclusions, show the problem to someone who knows for certain.
On Sat, 10 Mar 2001, Gary Whysong wrote:
[...]
Why?  These are *model*.tables not *data*.tables. You have to
adjust for block effects, and they are unbalanced.  Blocks 3 and 4 have
lower responses than 1 and 2, and they are missing for treatments 2 and 3.
Seems to adjust correctly to me.

Note the order of terms matters in unbalanced models.