Statalist The Stata Listserver


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

st: RE: ANOVA with tabulated data


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: ANOVA with tabulated data
Date   Thu, 5 Apr 2007 13:13:16 +0100

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/



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