Displaying 1 result from an estimated 1 matches for "sd_mean_temp".
2009 Jul 16
1
Theil test help
...mpute the distribution free test for the slope of a postulated regression line (Theil test). As I am testing the null hypothesis that slope = 0 against the general alternative the slope does not equal 0, it should be pretty straight-forward.
I have a data frame as follows;
index Score Mean_Temp SD_Mean_Temp
i 10 3.7 0.65
i+1 12 7.5 2.11
i+2 6 10.3 0.85
... ... ... ...
n 8 12.6 4.2
The first question is how can I compute the n(n-1)/2 differences between Score i and Score j where i is from 1 to (n-1) and j is from (i+1) to n? I would then like R to spit out the differences in a file something lik...