You need to -reshape- first. See help on -reshape-.
gen id = _n
reshape long Exam, i(id)
That said, I don't see that you have a two-way problem.
Nick
[email protected]
Dragutin Culinovic
> I have student's score data, in rows by students and in columns by
> exams.
> How to set ANOVA command to make two-factor (by students and
> by exams)
> ANOVA test?
>
> Data example:
>
> .list
> +-------------------------------+
> | Exam1 Exam2 Exam3 Exam4 |
> |-------------------------------|
> 1. | 75 78 80 73 |
> 2. | 73 71 69 67 |
> 3. | 60 64 62 63 |
> 4. | 70 72 70 80 |
> 5. | 86 90 85 92 |
> +-------------------------------+
*
* 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/