Hi, I would like to know how to do the repeated measures ANOVA analysis with the following data - I did a longitudinal experiment on several students. I first divided them into two groups - one is the treatment group (treatment = 1), the other is the control group (treatment = 0). Then I collected their writing scores in 4 waves (meaning, I measured their writing scores four times in the longitudinal experiment which lasted around 1 week).

I want to know if the treatment influences their scores. But I don't know how to do the repeated measures ANOVA analysis in stata? Can anyone help me out?

Code:
clear
input student treatment wave score
1 0 1 12
1 0 2 4
1 0 3 1
1 0 4 6
2 0 1 7
2 0 2 1
2 0 3 6
2 0 4 12
3 0 1 6
3 0 2 12
3 0 3 4
3 0 4 2
4 0 1 2
4 0 2 8
4 0 3 0
4 0 4 4
5 0 1 0
5 0 2 6
5 0 3 0
5 0 4 4
6 0 1 3
6 0 2 4
6 0 3 4
6 0 4 2
7 0 1 3
7 0 2 4
7 0 3 0
7 0 4 3
8 0 1 4
8 0 2 4
8 0 3 2
8 0 4 4
9 0 1 6
9 0 2 3
9 0 3 3
9 0 4 2
10 0 1 3
10 0 2 3
10 0 3 4
10 0 4 4
11 0 1 1
11 0 2 4
11 0 3 0
11 0 4 4
12 1 1 2
12 1 2 9
12 1 3 0
12 1 4 7
13 1 1 4
13 1 2 0
13 1 3 4
13 1 4 9
14 1 1 0
14 1 2 7
14 1 3 0
14 1 4 9
15 1 1 8
15 1 2 6
15 1 3 3
15 1 4 9
16 1 1 9
16 1 2 0
16 1 3 0
16 1 4 0
17 1 1 0
17 1 2 1
17 1 3 4
17 1 4 0
18 1 1 0
18 1 2 8
18 1 3 9
18 1 4 9
19 1 1 9
19 1 2 0
19 1 3 2
19 1 4 0
20 1 1 7
20 1 2 0
20 1 3 7
20 1 4 7
21 1 1 9
21 1 2 0
21 1 3 0
21 1 4 1
22 1 1 4
22 1 2 1
22 1 3 7
22 1 4 10
23 1 1 2
23 1 2 1
23 1 3 2
23 1 4 4
24 1 1 1
24 1 2 3
24 1 3 3
24 1 4 9
end