Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

re: st: syntax for nested two-factor ANOVA


From   David Airey <[email protected]>
To   [email protected]
Subject   re: st: syntax for nested two-factor ANOVA
Date   Sun, 9 Apr 2006 21:26:27 -0500

I don't think you provide enough information to get the exact anova model you want. Since you said nested two factor ANOVA, do you have data like this?

brand company sold(keep) replicates

1 1 1 3
1 1 0 9

2 1 1 etc.
2 1 0

3 1 1
3 1 0

4 2 1
4 2 0

5 2 1
5 2 0

6 2 1
6 2 0

Forgetting if "keep" might be better modeled as a DV, then brand is nested in company and brand|company is crossed with keep.

Are you interested in particular brands, or companies, or just trying to control for random (nested) data? If in fact you want to treat both brand and company as random effects you might look at:

II. A, B, C, and D at:

http://online.sfsu.edu/~efc/classes/biol458/repnestn/repnestn3.htm

with attention to D.

-Dave

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index