Hi everyone,
I'm fairly new at using stata and am having trouble figuring out the code for something.
I have a variable called AnxietyTScore. The score is measured at different points denoted by the variable Assmnt (1, 2 or 3). I need to calculate the difference in scores at Assmnt 1 and 2. The study has defined a meaningful change as a change of 5 in either direction. I then need to tabulate how many scores remained same, increased or decreased.
This is what the data looks like:
input float(Assmnt AnxietyTScore)
1 61.3
2 61.1
3 60.7
1 49.9
2 49.9
3 46.5
1 54.6
2 48.8
3 50.7
1 56.6
2 55.6
3 56.5
1 58.7
1 43.9
2 54.7
3 75.8
1 67.8
2 55.1
3 48.3
1 65.5
2 56.4
3 57.5
1 54
2 51.1
3 51.3
1 67.7
2 62.5
3 55.9
1 59.4
1 66.7
2 60.4
3 59.6
1 58.5
2 55.5
1 37.1
2 37.1
3 37.1
1 63.3
2 43.5
3 43.8
1 37.1
2 54.8
3 46.6
1 37.1
2 37.1
1 51.2
2 51.5
3 48.3
1 48.8
2 47.9
3 57
1 48.7
2 52
3 69.8
1 54.6
2 48.5
3 37.1
1 62.4
2 63.3
3 37.1
1 37.1
2 37.1
3 45.9
1 61.2
2 66.2
3 64.7
1 59.2
2 54.2
3 43.5
1 58.7
2 48.3
3 51
1 43.7
2 37.1
3 37.1
1 69
2 71.9
1 61.6
1 43.7
1 53.7
2 63.4
3 57.5
1 60.9
2 56.8
3 54.4
1 58.6
2 53.2
3 46.1
1 64.4
2 51.3
3 43.5
1 37.1
3 37.1
1 37.1
2 37.1
3 57.1
1 79.4
2 76.4
1 61.4
2 54
end
[/CODE]
Thank you!
I'm fairly new at using stata and am having trouble figuring out the code for something.
I have a variable called AnxietyTScore. The score is measured at different points denoted by the variable Assmnt (1, 2 or 3). I need to calculate the difference in scores at Assmnt 1 and 2. The study has defined a meaningful change as a change of 5 in either direction. I then need to tabulate how many scores remained same, increased or decreased.
This is what the data looks like:
input float(Assmnt AnxietyTScore)
1 61.3
2 61.1
3 60.7
1 49.9
2 49.9
3 46.5
1 54.6
2 48.8
3 50.7
1 56.6
2 55.6
3 56.5
1 58.7
1 43.9
2 54.7
3 75.8
1 67.8
2 55.1
3 48.3
1 65.5
2 56.4
3 57.5
1 54
2 51.1
3 51.3
1 67.7
2 62.5
3 55.9
1 59.4
1 66.7
2 60.4
3 59.6
1 58.5
2 55.5
1 37.1
2 37.1
3 37.1
1 63.3
2 43.5
3 43.8
1 37.1
2 54.8
3 46.6
1 37.1
2 37.1
1 51.2
2 51.5
3 48.3
1 48.8
2 47.9
3 57
1 48.7
2 52
3 69.8
1 54.6
2 48.5
3 37.1
1 62.4
2 63.3
3 37.1
1 37.1
2 37.1
3 45.9
1 61.2
2 66.2
3 64.7
1 59.2
2 54.2
3 43.5
1 58.7
2 48.3
3 51
1 43.7
2 37.1
3 37.1
1 69
2 71.9
1 61.6
1 43.7
1 53.7
2 63.4
3 57.5
1 60.9
2 56.8
3 54.4
1 58.6
2 53.2
3 46.1
1 64.4
2 51.3
3 43.5
1 37.1
3 37.1
1 37.1
2 37.1
3 57.1
1 79.4
2 76.4
1 61.4
2 54
end
[/CODE]
Thank you!
Comment