Difference between revisions of "TiedRank Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
(command syntax: changed [ ] into ( ))
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|statistics}}
{{command|statistics}}
+
;TiedRank( &lt;List> )
;TiedRank[ <List L> ]
+
:Returns a list, whose ''i''-th element is the rank of ''i''-th element of the given list ''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.
+
:{{examples|
:{{example|1=<code>TiedRank[{4, 1, 2, 3, 4, 2}]</code> returns  {5.5, 1, 2.5, 4, 5.5, 2.5} .}}
+
:*<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}.}}
+
:*<code>TiedRank({3, 2, 2, 1})</code> returns {4, 2.5, 2.5, 1}.}}
 
 
 
{{note|Also see [[OrdinalRank Command]] }}
 
{{note|Also see [[OrdinalRank Command]] }}

Latest revision as of 11:58, 6 October 2017


TiedRank( <List> )
Returns a list, whose i-th element is the rank of i-th element of the given list 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.
Examples:
  • TiedRank({4, 1, 2, 3, 4, 2}) returns {5.5, 1, 2.5, 4, 5.5, 2.5}.
  • TiedRank({3, 2, 2, 1}) returns {4, 2.5, 2.5, 1}.
Note: Also see OrdinalRank Command
© 2024 International GeoGebra Institute