Re: st: syntax for nested two-factor ANOVA

I admit remaining confused about the design and think I may have sent
you down the wrong path. It is hard to suggest over the listserv,
without much thought, and without seeing the data.

In looking at the data I see you have replication in the table cells,
e.g., you have 4 cases for brand 7 and company 1 with a 0 keep
status. This is making the repeated measures request fail (I think).
I also see that you sometimes have a company with only one brand for
sale, so there is no variance in those cases that is separate between
company and brand.

Also I now imagine the experiment as you obtaining a continuous DV
measure on each box of cereal that was sold or discarded, and that
you have more than one box measured per brand, cereal combination.

where we have a three factor nested design, with brand nested in
company and crossed with keep, and keep is between subjects.

Since you don't have brand separable from company for half your
companies, why not simplify and just control for brand, in which case
you have a two factor ANOVA with unequal replication with one of your
factors a random (blocking) effect. Usually you don't interact that
blocking effect, so: