Difference between revisions of "TiedRank Command"

From GeoGebra Manual
Jump to: navigation, search
(Created page with "<noinclude>{{Manual Page|version=4.0}}</noinclude> {{command|statistics}} ;TiedRank[ <List L> ] :Returns a list, whose ''i''-th element is the rank of ''i''-th element of L (ra...")
 
Line 3: Line 3:
 
;TiedRank[ <List L> ]
 
;TiedRank[ <List L> ]
 
:Returns a list, whose ''i''-th element is the rank of ''i''-th element of L (rank of element is its position in [[Sort Command|Sort]][L]). If there are more equal elements in L which occupy positions from ''k'' to ''l'' in Sort[L], the mean of the  ranks from ''k'' to ''l'' are associated with these elements.
 
:Returns a list, whose ''i''-th element is the rank of ''i''-th element of L (rank of element is its position in [[Sort Command|Sort]][L]). If there are more equal elements in L which occupy positions from ''k'' to ''l'' in Sort[L], the mean of the  ranks from ''k'' to ''l'' are associated with these elements.
{{example|1=<code>TiedRank[{4, 1, 2, 3, 4, 2}]</code> returns {5, 1, 2, 4, 6, 3}.}}
+
{{example|1=<code>TiedRank[{4, 1, 2, 3, 4, 2}]</code> returns {5.5, 1, 2.5, 4, 5.5, 2.5} .}}
 
{{example|1=<code>TiedRank[{3, 2, 2, 1}]</code> returns {4, 2.5, 2.5, 1}.}}
 
{{example|1=<code>TiedRank[{3, 2, 2, 1}]</code> returns {4, 2.5, 2.5, 1}.}}
  
 
{{note|Also see command: [[OrdinalRank Command|OrdinalRank]] }}
 
{{note|Also see command: [[OrdinalRank Command|OrdinalRank]] }}

Revision as of 00:12, 21 June 2011



TiedRank[ <List L> ]
Returns a list, whose i-th element is the rank of i-th element of L (rank of element is its position in Sort[L]). If there are more equal elements in L which occupy positions from k to l in Sort[L], the mean of the ranks from k to l are associated with these elements.
Example: TiedRank[{4, 1, 2, 3, 4, 2}] returns {5.5, 1, 2.5, 4, 5.5, 2.5} .
Example: TiedRank[{3, 2, 2, 1}] returns {4, 2.5, 2.5, 1}.


Note: Also see command: OrdinalRank
© 2024 International GeoGebra Institute