stats[transform, statvalue]
value of each datum
Calling Sequence
Parameters
Description
Examples
stats[transform, statvalue](data)
transform[statvalue](data)
data
-
statistical list
Important: The stats package has been deprecated. Use the superseding package Statistics instead.
The statvalue function of the subpackage stats[transform, ...] replaces each data point of data by its value. In other words, it resets the weight of each data point to 1.
The order of the data items is not changed.
Note that repeated items will still be repeated, though each instance will have a weight of 1. If it is required that only a single instance of the items remain, use transform[tally] prior to using transform[statvalue]. Of course, the call to tally will, in general, change the order of the data.
The name of this function is chosen to avoid the clash with the value() function.
with⁡stats:
data1≔Weight⁡3,2,Weight⁡4,5
transformstatvalue⁡data1
3,4
For the data list (which has the item 3 appearing twice)
data2≔Weight⁡3,2,Weight⁡3,6,Weight⁡4,5
compare
transformstatvalue⁡data2
3,3,4
with
transformtally⁡data2
Weight⁡3,8,Weight⁡4,5
transformstatvalue⁡
A more general example is:
data3≔Weight⁡3,10,missing,4,Weight⁡11..12,3,15..17
transformstatvalue⁡data3
3,missing,4,11..12,15..17
See Also
Statistics
transform(deprecated)[cumulativefrequency]
transform(deprecated)[frequency]
transform(deprecated)[tally]
value
Download Help Document