Suppose that you have two data vectors, x and y, with the same number of elements. How can you rearrange the values of y so that they have the same relative order as the values of x? In other words, find a permutation, π, of the elements of y so
Suppose that you have two data vectors, x and y, with the same number of elements. How can you rearrange the values of y so that they have the same relative order as the values of x? In other words, find a permutation, π, of the elements of y so
Update 24Nov2015: The methods in this post no longer work for Twitter, as Twitter has discontinued support for its "share count" API that was used within the Twitter share buttons. But the Facebook method still works, and I've described a method for counting LinkedIn shares on another post. As of
If you're using JMP, please read on. This week's tip is from Professor Robert Carver and his popular book Practical Data Analysis with JMP. To read a free chapter and reviews of the book, visit Robert's author page. The following excerpt is from SAS Press author Robert Carver and his book "Practical Data Analysis with JMP" Copyright ©