Would something like the following be closer to what you're looking for?
clear *
set more off
input str2 Idno pain_x1 pain_x2
"A1" 53 74
"A2" 62 23
"B3" 15 12
"B5" 86 52
end
reshape long pain_x, i(Idno) j(observer)
encode Idno, generate(patient)
loneway pain_x patient
exit
Joseph Coveney
Sham Lal:
Dear Statlisters
I am looking to compare the ratings of pain between two observers x1 x2 and
am using the loneway command to produce ICC's. However, I don't completely
believe that loneway is producing what I require. My data is organised as
follows:
Idno pain_x1 pain_x2
A1 53 74
A2 62 23
B3 15 12
B5 86 52
The output after running loneway pain_x1 pain_x2 is as follows:
One-way Analysis of Variance for pain_x1:
Number of obs = 203
R-squared = 0.9025
Source SS df MS F Prob > F
-------------------------------------------------------------------------
Between pain_x2 135346.15 68 1990.3846 18.25 0.0000
Within pain_x2 14613.739 134 109.05775
-------------------------------------------------------------------------
Total 149959.89 202 742.3757
Intraclass Asy.
correlation S.E. [95% Conf. Interval]
------------------------------------------------
0.85839 0.03899 0.78197 0.93481
This is comparing the variation between just pain_x2, I fear this is not
correct?
Any help would be appreciated
Sham
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/