I want to use Stata to compare results obtained with SPSS.
Each subject is identified by the variable pin, pin=1,2,..100.
Each subject is a student at the same university.
The response variable is score.
For each subject, score is measured at time t=1,2,3.
t=1, first year of university.
t=2, second year.
t=3, third year.
fac=0 for student from math science.
fac=1 for student from social science.
The data is in long format.
pin fac t score
--------
1 0 1 60
1 0 2 65
1 0 3 70
--------
2 0 1 64
2 0 2 72
2 0 3 78
--------
3 1 1 77
3 1 2 81
3 1 3 80
--------
...
fac is a between factor
t=time is a within factor (repeated)
wsanova score t, id(pin) between(fac) epsilon
Simple question. Is this the syntax to use ?
Thank you.
*
* 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/