[R] help on compare two ranks

From: Baoqiang Cao <bqcaomail_at_gmail.com>
Date: Thu, 14 Apr 2011 10:00:09 -0500


Hi,

I have to one set of inputs and their observed true values of each input. Now I have a model takes the input and predict a value. I only consider the ranks based on either the observed true values or the predicted values. My question is how do I compare this two rank in R? That is, how close the rank from prediction to the rank from true observations?

x_1: y_1, p_1,
x_2: y_2, p_2,
...
x_m: y_m, p_m,

R_y is the ranking based on {y_1, y_2,..,y_m}. R_p is the ranking from {p_1, p_2, ..., p_m}. How do I know in R how good/bad R_p is given R_y?

I searched r-help and got some clue of using wilcox.test but still a bit confused of how to compare the two ranking against the true ranking. Any advice will be highly appreciated. I apologize if this is a too statistics question.

Thanks in advance.
Baoqiang



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 14 Apr 2011 - 15:02:47 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 15 Apr 2011 - 16:00:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive